Geschützte Methoden | |
fetch ($id, $name, $cache_id, $compile_id, &$content, &$mtime) | |
fetchTimestamp ($id, $name, $cache_id, $compile_id) | |
save ($id, $name, $cache_id, $compile_id, $exp_time, $content) | |
delete ($name, $cache_id, $compile_id, $exp_time) | |
Weitere Geerbte Elemente | |
Öffentliche, statische Methoden geerbt von Smarty_CacheResource | |
static | load (Smarty $smarty, $type=null) |
static | invalidLoadedCache (Smarty $smarty) |
Statische, geschützte Attribute geerbt von Smarty_CacheResource | |
static | $sysplugins |
Definiert in Zeile 16 der Datei smarty_cacheresource_custom.php.
acquireLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Lock cache for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 290 der Datei smarty_cacheresource_custom.php.
Benutzt save().
clear | ( | Smarty | $smarty, |
$resource_name, | |||
$cache_id, | |||
$compile_id, | |||
$exp_time | |||
) |
Empty cache for a specific template
Smarty | $smarty | Smarty object |
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) |
Definiert in Zeile 229 der Datei smarty_cacheresource_custom.php.
clearAll | ( | Smarty | $smarty, |
$exp_time = null |
|||
) |
Empty cache
Smarty | $smarty | Smarty object |
integer | $exp_time | expiration time (number of seconds, not timestamp) |
Definiert in Zeile 211 der Datei smarty_cacheresource_custom.php.
|
abstractprotected |
Delete content from cache
string | $name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
integer | null | $exp_time | seconds till expiration time in seconds or null |
|
abstractprotected |
fetch cached content and its modification time from data source
string | $id | unique cache content identifier |
string | $name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
string | $content | cached content |
integer | $mtime | cache modification timestamp (epoch) |
Wird benutzt von hasLock(), populateTimestamp() und readCachedContent().
|
protected |
Fetch cached content's modification timestamp from data source {
Definiert in Zeile 44 der Datei smarty_cacheresource_custom.php.
Wird benutzt von hasLock() und populateTimestamp().
hasLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Check is cache is locked for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 270 der Datei smarty_cacheresource_custom.php.
Benutzt fetch() und fetchTimestamp().
populate | ( | Smarty_Template_Cached | $cached, |
Smarty_Internal_Template | $_template | ||
) |
populate Cached Object with meta data from Resource
Smarty_Template_Cached | $cached | cached object |
Smarty_Internal_Template | $_template | template object |
Definiert in Zeile 83 der Datei smarty_cacheresource_custom.php.
Benutzt populateTimestamp().
populateTimestamp | ( | Smarty_Template_Cached | $cached) |
populate Cached Object with timestamp and exists from Resource
Smarty_Template_Cached | $cached |
Definiert in Zeile 102 der Datei smarty_cacheresource_custom.php.
Benutzt fetch() und fetchTimestamp().
Wird benutzt von populate().
readCachedContent | ( | Smarty_Internal_Template | $_template) |
Read cached template from cache
Smarty_Internal_Template | $_template | template object |
Definiert in Zeile 182 der Datei smarty_cacheresource_custom.php.
Benutzt fetch().
releaseLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Unlock cache for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 306 der Datei smarty_cacheresource_custom.php.
|
abstractprotected |
Save content to cache
string | $id | unique cache content identifier |
string | $name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
integer | null | $exp_time | seconds till expiration or null |
string | $content | content to cache |
Wird benutzt von acquireLock() und writeCachedContent().
writeCachedContent | ( | Smarty_Internal_Template | $_template, |
$content | |||
) |
Write the rendered template output to cache
Smarty_Internal_Template | $_template | template object |
string | $content | content to cache |
Definiert in Zeile 163 der Datei smarty_cacheresource_custom.php.
Benutzt save().