abstract |
---|
Cache Handler API
Methods | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
abstract
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
Implemented by |
# | ||||||||||
abstract
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 Implemented by |
# | ||||||||||
abstract
public
|
process(Smarty_Internal_Template $_template, Smarty_Template_Cached $cached = null, boolean $update = false): boolean
Read the cached template and process header
Read the cached template and process header Parameters
Returnstrue or false if the cached content does not exist Implemented by |
# | ||||||||||
abstract
public
|
writeCachedContent(Smarty_Internal_Template $_template, string $content): boolean
Write the rendered template output to cache
Write the rendered template output to cache Parameters
Returnssuccess Implemented by |
# | ||||||||||
abstract
public
|
readCachedContent(Smarty_Internal_Template $_template): string
Read cached template from cache
Read cached template from cache Parameters
Returnscontent Implemented by |
# | ||||||||||
public
|
getCachedContent(Smarty_Internal_Template $_template): null|string
Return cached content
Return cached content Parameters
|
# | ||||||||||
abstract
public
|
clearAll(Smarty $smarty, integer $exp_time = null): integer
Empty cache
Empty cache Parameters
Returnsnumber of cache files deleted Implemented by |
# | ||||||||||
abstract
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 Implemented by |
# | ||||||||||
public
|
locked(Smarty $smarty, Smarty_Template_Cached $cached): bool|null
|
# | ||||||||||
public
|
hasLock(Smarty $smarty, Smarty_Template_Cached $cached): bool
Check is cache is locked for this template
Check is cache is locked for this template Overriden by |
# | ||||||||||
public
|
acquireLock(Smarty $smarty, Smarty_Template_Cached $cached): bool
Lock cache for this template
Lock cache for this template Overriden by |
# | ||||||||||
public
|
releaseLock(Smarty $smarty, Smarty_Template_Cached $cached): bool
Unlock cache for this template
Unlock cache for this template Overriden by |
# | ||||||||||
public
static
|
load(Smarty $smarty, string $type = null): Smarty_CacheResource
Load Cache Resource Handler
Load Cache Resource Handler Parameters
ReturnsCache Resource Handler Throws
|
# |
Properties | |||
---|---|---|---|
protected
static
|
array
|
$sysplugins = ['file' => 'smarty_internal_cacheresource_file.php']
|
# |