4 * Smarty Method ClearAllCache
6 * Smarty::clearAllCache() method
9 * @subpackage PluginsInternal
12 class Smarty_Internal_Method_ClearAllCache
15 * Valid for Smarty object
24 * @api Smarty::clearAllCache()
25 * @link http://www.smarty.net/docs/en/api.clear.all.cache.tpl
27 * @param \Smarty $smarty
28 * @param integer $exp_time expiration time
29 * @param string $type resource type
31 * @return integer number of cache files deleted
33 public function clearAllCache(Smarty $smarty, $exp_time = null, $type = null)
35 $smarty->_clearTemplateCache();
36 // load cache resource and call clearAll
37 $_cache_resource = Smarty_CacheResource::load($smarty, $type);
38 return $_cache_resource->clearAll($smarty, $exp_time);