Primer commit del sistema avantika sin cambios
This commit is contained in:
29
libs/sysplugins/smarty_method_clear_all_cache.php
Executable file
29
libs/sysplugins/smarty_method_clear_all_cache.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty method Clear_All_Cache
|
||||
*
|
||||
* Empties the cache folder
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage SmartyMethod
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
/**
|
||||
* Empty cache folder
|
||||
*
|
||||
* @param object $smarty
|
||||
* @param integer $exp_time expiration time
|
||||
* @param string $type resource type
|
||||
* @return integer number of cache files deleted
|
||||
*/
|
||||
function Smarty_Method_Clear_All_Cache($smarty, $exp_time = null, $type = null)
|
||||
{
|
||||
// load cache resource
|
||||
$cacheResource = $smarty->loadCacheResource($type);
|
||||
|
||||
return $cacheResource->clearAll($exp_time);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user