Source for file NestedOutput.php
Documentation is available at NestedOutput.php
* This class extends Cache_Lite and uses output buffering to get the data to cache.
* It supports nesting of caches
* @author Markus Tacker <tacker@php.net>
require_once('Cache/Lite/Output.php');
class Cache_Lite_NestedOutput extends Cache_Lite_Output
private $nestedIds = array ();
private $nestedGroups = array ();
* @param string $id cache id
* @param string $group name of the cache group
* @param boolean $doNotTestCacheValidity if set to true, the cache validity won't be tested
* @return boolean|stringfalse if the cache is not hit else the data
function start ($id, $group = 'default', $doNotTestCacheValidity = false )
$this->nestedIds[] = $id;
$this->nestedGroups[] = $group;
$data = $this->get ($id, $group, $doNotTestCacheValidity);
* @return string return contents of cache
$this->save ($data, $id, $group);
Documentation generated on Thu, 24 May 2012 08:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|