Source code for file /pattemplate/patTemplate/TemplateCache/MMCache.php
Documentation is available at MMCache.php
* patTemplate Template cache that stores data in the MMCache Cache
* $Id: MMCache.php 364 2005-02-19 09:39:45Z schst $
// Check to ensure this file is within the rest of the framework
* patTemplate Template cache that stores data in the eAccelerator Cache
* If the lifetime is set to auto, the cache files will be kept until
* you delete them manually.
* $Id: MMCache.php 364 2005-02-19 09:39:45Z schst $
* parameters of the cache
var $_params =
array( 'lifetime' =>
'auto');
* load template from cache
* @param string cache key
* @param integer modification time of original template
* @return array|boolean either an array containing the templates or false cache could not be loaded
function load( $key, $modTime = -
1 )
$something =
mmcache_get($key);
* write template to cache
* @param string cache key
* @param array templates to store
* @return boolean true on success
function write( $key, $templates )
if ($this->getParam( 'lifetime' ) ==
'auto'){