1 <?php
3 /**
4 * Smarty method Clear_All_Cache
5 *
6 * Empties the cache folder
7 *
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews
11 */
13 /**
14 * Empty cache folder
15 *
16 * @param object $smarty
17 * @param integer $exp_time expiration time
18 * @param string $type resource type
19 * @return integer number of cache files deleted
20 */
21 function Smarty_Method_Clear_All_Cache($smarty, $exp_time = null, $type = null)
22 {
23 // load cache resource
24 $cacheResource = $smarty->loadCacheResource($type);
26 return $cacheResource->clearAll($exp_time);
27 }
29 ?>