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
string
template name
string
cache id
string
compile id
integer
expiration time (number of seconds, not timestamp)
integer
number of cache files deletedclearAll(\Smarty $smarty, integer $exp_time) : integer
integer
expiration time (number of seconds, not timestamp)
integer
number 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
string
name of the cache resource
\Smarty_CacheResource
Cache 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
\booelan
true or false if the cached content does not existreleaseLock(\Smarty $smarty, \Smarty_Template_Cached $cached)
writeCachedContent(\Smarty_Internal_Template $_template, string $content) : boolean
string
content to cache
boolean
success$resources : array
$sysplugins : array