extends |
Smarty_CacheResource |
---|
This class does contain all necessary methods for the HTML cache on file system Implements the file system as resource for the HTML cache Version ussing nocache inserts.
Methods | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public
|
populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template): void
populate Cached Object with meta data from Resource
populate Cached Object with meta data from Resource Parameters
Implements |
# | ||||||||||
public
|
populateTimestamp(Smarty_Template_Cached $cached): void
populate Cached Object with timestamp and exists from Resource
populate Cached Object with timestamp and exists from Resource Parameters
Implements |
# | ||||||||||
public
|
process(Smarty_Internal_Template $_smarty_tpl, Smarty_Template_Cached $cached = null, bool $update = false): boolean
Read the cached template and process its header
Read the cached template and process its header Parameters
Returnstrue or false if the cached content does not exist Implements |
# | ||||||||||
public
|
writeCachedContent(Smarty_Internal_Template $_template, string $content): bool
Write the rendered template output to cache
Write the rendered template output to cache Parameters
Returnssuccess Throws
Implements |
# | ||||||||||
public
|
readCachedContent(Smarty_Internal_Template $_template): string
Read cached template from cache
Read cached template from cache Parameters
Returnscontent Implements |
# | ||||||||||
public
|
clearAll(Smarty $smarty, integer $exp_time = null): integer
Empty cache
Empty cache Parameters
Returnsnumber of cache files deleted Implements |
# | ||||||||||
public
|
clear(Smarty $smarty, string $resource_name, string $cache_id, string $compile_id, integer $exp_time): integer
Empty cache for a specific template
Empty cache for a specific template Parameters
Returnsnumber of cache files deleted Implements |
# | ||||||||||
public
|
hasLock(Smarty $smarty, Smarty_Template_Cached $cached): boolean
Check is cache is locked for this template
Check is cache is locked for this template Parameters
Returnstrue or false if cache is locked Overrides |
# | ||||||||||
public
|
acquireLock(Smarty $smarty, Smarty_Template_Cached $cached): bool|void
Lock cache for this template
Lock cache for this template Parameters
Overrides |
# | ||||||||||
public
|
releaseLock(Smarty $smarty, Smarty_Template_Cached $cached): bool|void
Unlock cache for this template
Unlock cache for this template Parameters
Overrides |
# |
Methods inherited from Smarty_CacheResource |
---|
getCachedContent(), locked(), load() |
Properties inherited from Smarty_CacheResource |
---|
$sysplugins |