Source for file Output.php
Documentation is available at Output.php
* This class extends Cache_Lite and uses output buffering to get the data to cache.
* There are some examples in the 'docs/examples' file
* Technical choices are described in the 'docs/technical' file
* @author Fabien MARTY <fab@php.net>
require_once('Cache/Lite.php');
class Cache_Lite_Output extends Cache_Lite
// --- Public methods ---
* $options is an assoc. To have a look at availables options,
* see the constructor of the Cache_Lite class in 'Cache_Lite.php'
* @param array $options options
function Cache_Lite_Output ($options)
$this->Cache_Lite ($options);
* @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 true if the cache is hit (false else)
function start ($id, $group = 'default', $doNotTestCacheValidity = false )
$data = $this->get ($id, $group, $doNotTestCacheValidity);
$this->save ($data, $this->_id, $this->_group);
Documentation generated on Thu, 24 May 2012 08:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|