Code

fixed property
[gosa.git] / gosa-core / include / smarty / sysplugins / smarty_method_clear_cache.php
1 <?php
3 /**
4 * Smarty method Clear_Cache
5
6 * Empties the cache for a specific template
7
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews 
11 */
13 /**
14 * Empty cache for a specific template
15
16 * @param object $smarty 
17 * @param string $template_name template name
18 * @param string $cache_id cache id
19 * @param string $compile_id compile id
20 * @param integer $exp_time expiration time
21 * @param string $type resource type
22 * @return integer number of cache files deleted
23 */
24 function  Smarty_Method_Clear_Cache($smarty, $template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null)
25
26    // load cache resource
27     $cacheResource = $smarty->loadCacheResource($type);
29     return $cacheResource->clear($template_name, $cache_id, $compile_id, $exp_time);
30
32 ?>