echo 'Cache filepath, getFilePath(): ' . $cache->getFilePath() . '<br/>'; echo '<hr/>'; //get file name echo 'Cache file name, getFile(): ' . $cache->getFile(); echo '<hr>'; //cache present already? echo 'isChached(): '; if ($cache->isCached()) { echo 'cache exists'; } else { echo 'cache does not exist'; } echo '<hr>'; //get cache file contents echo 'Cache file contents: <br/>'; $str = $cache->getPageCache(); var_dump($str); echo '<hr/>'; //Clear cache for this page // //Uncomment this line below to force cache clear of this page // //$cache->clearPageCache(); //disable log, overrides conf.php //$cache->disableLog(); //Change log file path, overrides conf.php //$cache->logFilePath(__DIR__.'/log/cache.log'); //Set cache expiration for this current page, overrides conf.php //$cache->setExpiration(3600); //Cache file minimum size, if it's less than this many bytes cache considered invalid. //This value is important, set to your minimum page size.