load($id, $doNotTestCacheValidity); if ($data !== false) { echo($data); return true; } ob_start(); ob_implicit_flush(false); return false; } /** * Stop the cache * * @param array $tags tags array * @param int $specificLifetime if != false, set a specific lifetime for this cache record (null => infinite lifetime) */ public function end($tags = array(), $specificLifetime = false) { $data = ob_get_contents(); ob_end_clean(); $this->save($data, null, $tags, $specificLifetime); echo($data); } }