mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
simplified Smarty::clear_all_cache();
This commit is contained in:
@@ -972,18 +972,7 @@ class Smarty
|
|||||||
*/
|
*/
|
||||||
function clear_all_cache($exp_time = null)
|
function clear_all_cache($exp_time = null)
|
||||||
{
|
{
|
||||||
if (!empty($this->cache_handler_func)) {
|
return $this->clear_cache(null, null, null, $exp_time);
|
||||||
$dummy = null;
|
|
||||||
call_user_func_array($this->cache_handler_func,
|
|
||||||
array('clear', &$this, &$dummy, null, null, null, $exp_time));
|
|
||||||
} else {
|
|
||||||
$_params = array('auto_base' => $this->cache_dir,
|
|
||||||
'auto_source' => null,
|
|
||||||
'auto_id' => null,
|
|
||||||
'exp_time' => $exp_time);
|
|
||||||
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.rm_auto.php');
|
|
||||||
return smarty_core_rm_auto($_params, $this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user