- function Start($hash, $time = 300) {
- $cachefile = $this->basedir .'/'. $hash . $this->fileextension;
- if (file_exists($cachefile) && time() < filemtime($cachefile) + $time) {
- @readfile($cachefile);
- echo "\n<!-- Cached: ". date('r', filemtime($cachefile)) ." -->\n";
- unset($cachefile);
- exit;
- }
- ob_start("ob_gzhandler");
+ function Start($hash, $time = 300) {
+ $cachefile = $this->basedir .'/'. $hash . $this->fileextension;
+ if (file_exists($cachefile) && time() < filemtime($cachefile) + $time) {
+ @readfile($cachefile);
+ echo "\n<!-- Cached: ". date('r', filemtime($cachefile)) ." -->\n";
+ unset($cachefile);
+ exit;