remove ob_clean/flush shit as unneeded hacks from cached image output routines

This commit is contained in:
Andrew Dolgov 2014-08-21 13:20:23 +04:00
parent 8ef0ca2fa6
commit 849c66b783
2 changed files with 0 additions and 4 deletions

View File

@ -41,8 +41,6 @@
header("Content-type: image/png");
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
header("Last-Modified: $stamp", true);
ob_clean(); // discard any data in the output buffer (if possible)
flush(); // flush headers (if possible)
readfile($filename);
}
} else {

View File

@ -62,8 +62,6 @@ class Cache_Starred_Images extends Plugin {
header("Content-type: image/png");
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
header("Last-Modified: $stamp", true);
ob_clean(); // discard any data in the output buffer (if possible)
flush(); // flush headers (if possible)
readfile($filename);
}
} else {