$resources
$resources : array
cache for Smarty_CacheResource instances
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.
populate(\Smarty_Template_Cached $cached, \Smarty_Internal_Template $_template) : void
populate Cached Object with meta data from Resource
\Smarty_Template_Cached | $cached | cached object |
\Smarty_Internal_Template | $_template | template object |
populateTimestamp(\Smarty_Template_Cached $cached) : void
populate Cached Object with timestamp and exists from Resource
\Smarty_Template_Cached | $cached | cached object |
process(\Smarty_Internal_Template $_template, \Smarty_Template_Cached $cached = null) : \booelan
Read the cached template and process its header
\Smarty_Internal_Template | $_template | template object |
\Smarty_Template_Cached | $cached | cached object |
true or false if the cached content does not exist
writeCachedContent(\Smarty_Internal_Template $_template, string $content) : boolean
Write the rendered template output to cache
\Smarty_Internal_Template | $_template | template object |
string | $content | content to cache |
success
getCachedContent(\Smarty_Internal_Template $_template)
Return cached content
\Smarty_Internal_Template | $_template | template object |
clearAll(\Smarty $smarty, integer $exp_time = null) : integer
Empty cache
\Smarty | $smarty | |
integer | $exp_time | expiration time (number of seconds, not timestamp) |
number of cache files deleted
clear(\Smarty $smarty, string $resource_name, string $cache_id, string $compile_id, integer $exp_time) : integer
Empty cache for a specific template
\Smarty | $smarty | |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
integer | $exp_time | expiration time (number of seconds, not timestamp) |
number of cache files deleted
locked(\Smarty $smarty, \Smarty_Template_Cached $cached) : null|boolean
Returns whether a cached resource is locked.
This will wait up to the locking timeout before returning, if the resource is locked.
\Smarty | $smarty | Smarty object |
\Smarty_Template_Cached | $cached | A cached template |
Returns whether the resource is locked
hasLock(\Smarty $smarty, \Smarty_Template_Cached $cached) : \booelan
Check is cache is locked for this template
\Smarty | $smarty | Smarty object |
\Smarty_Template_Cached | $cached | cached object |
true or false if cache is locked
acquireLock(\Smarty $smarty, \Smarty_Template_Cached $cached) : boolean
Lock cache for this template
\Smarty | $smarty | Smarty object |
\Smarty_Template_Cached | $cached | cached object |
Returns whether the lock was acquired
releaseLock(\Smarty $smarty, \Smarty_Template_Cached $cached) : boolean
Unlock cache for this template
\Smarty | $smarty | Smarty object |
\Smarty_Template_Cached | $cached | cached object |
Returns whether the lock was released
load(\Smarty $smarty, string $type = null) : \Smarty_CacheResource
Load Cache Resource Handler
\Smarty | $smarty | Smarty object |
string | $type | name of the cache resource |
Cache Resource Handler
invalidLoadedCache(\Smarty $smarty)
Invalid Loaded Cache Files
\Smarty | $smarty | Smarty object |