Cache Handler API
| package | Smarty |
|---|---|
| subpackage | Cacher |
| author | Rodney Rehm |
acquireLock(\Smarty $smarty, \Smarty_Template_Cached $cached)
clear(\Smarty $smarty, string $resource_name, string $cache_id, string $compile_id, integer $exp_time) : integer
stringtemplate name
stringcache id
stringcompile id
integerexpiration time (number of seconds, not timestamp)
integernumber of cache files deletedclearAll(\Smarty $smarty, integer $exp_time) : integer
integerexpiration time (number of seconds, not timestamp)
integernumber of cache files deletedgetCachedContent(\Smarty_Internal_Template $_template)
hasLock(\Smarty $smarty, \Smarty_Template_Cached $cached)
invalidLoadedCache(\Smarty $smarty)
load(\Smarty $smarty, string $type) : \Smarty_CacheResource
stringname of the cache resource
\Smarty_CacheResourceCache Resource Handlerlocked(\Smarty $smarty, \Smarty_Template_Cached $cached)
populate(\Smarty_Template_Cached $cached, \Smarty_Internal_Template $_template) : void
populateTimestamp(\Smarty_Template_Cached $cached) : void
process(\Smarty_Internal_Template $_template, \Smarty_Template_Cached $cached) : \booelan
\booelantrue or false if the cached content does not existreleaseLock(\Smarty $smarty, \Smarty_Template_Cached $cached)
writeCachedContent(\Smarty_Internal_Template $_template, string $content) : boolean
stringcontent to cache
booleansuccess$resources : array
$sysplugins : array