This returns true if there is a valid cache for this template. Right now, we are just passing it to the original Smarty function. We might introduce a function to decide if the cache is in need to be refreshed...
Overrides Smarty::clear_cache() (clear cached content for the given template and cache id)
Parameters:
string
$template
the name of the template
string
$cache_id
(optional) the cache ID
string
$compile_id
(optional) the compile ID
string
$expire
(optional) minimum age in sec. the cache file must be before it will get cleared.
This displays the template. Supply a valid template name. As an optional second parameter, you can pass a cache id. As an optional third parameter, you can pass a compile id.
Overrides Smarty::display() (executes & displays the template results)
This returns the template output instead of displaying it. Supply a valid template name. As an optional second parameter, you can pass a cache id. As an optional third parameter, you can pass a compile id.
Tags:
return:
the template output
Overrides Smarty::fetch() (executes & returns or displays the template results)
This returns true if there is a valid cache for this template. Right now, we are just passing it to the original Smarty function. We might introduce a function to decide if the cache is in need to be refreshed...
Overrides Smarty::is_cached() (test to see if valid cache exists for this template)