Empty cache for a specific template
integer
clear
(
Smarty $smarty,
string $resource_name,
string $cache_id,
string $compile_id,
integer $exp_time)
-
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)
Redefinition of:
- Smarty_CacheResource::clear()
- Empty cache for a specific template
Empty cache
integer
clearAll
(
Smarty $smarty, [
integer $exp_time =
null])
-
Smarty
$smarty: Smarty object
-
integer
$exp_time: expiration time (number of seconds, not timestamp)
Redefinition of:
- Smarty_CacheResource::clearAll()
- Empty cache
Delete content from cache
integer
delete
(string $name, string $cache_id, string $compile_id, integer|null $exp_time)
-
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
Redefined in descendants as:
fetch cached content and its modification time from data source
void
fetch
(string $id, string $name, string $cache_id, string $compile_id, &$content, &$mtime, string $content, integer $mtime)
-
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)
-
&$content
-
&$mtime
Redefined in descendants as:
Fetch cached content's modification timestamp from data source
integer|boolean
fetchTimestamp
(string $id, string $name, string $cache_id, string $compile_id)
-
string
$id: unique cache content identifier
-
string
$name: template name
-
string
$cache_id: cache id
-
string
$compile_id: compile id
Redefined in descendants as:
Save content to cache
boolean
save
(string $id, string $name, string $cache_id, string $compile_id, integer|null $exp_time, string $content)
-
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
Redefined in descendants as:
Inherited Methods
Inherited From Smarty_CacheResource
Smarty_CacheResource::acquireLock()
Smarty_CacheResource::clear()
Smarty_CacheResource::clearAll()
Smarty_CacheResource::getCachedContent()
Smarty_CacheResource::hasLock()
Smarty_CacheResource::invalidLoadedCache()
Smarty_CacheResource::load()
Smarty_CacheResource::locked()
Smarty_CacheResource::populate()
Smarty_CacheResource::populateTimestamp()
Smarty_CacheResource::process()
Smarty_CacheResource::releaseLock()
Smarty_CacheResource::writeCachedContent()