// Clear smarty cache on entities updates

This commit is contained in:
rGaillard
2012-05-29 10:33:53 +00:00
parent 00603a1825
commit e3cf7f8b35
3 changed files with 85 additions and 6 deletions
+5 -3
View File
@@ -1944,9 +1944,11 @@ FileETag INode MTime Size
*
* @param Smarty $smarty
*/
public static function clearCache($smarty)
{
$smarty->clearAllCache();
public static function clearCache($smarty, $tpl = false, $cache_id = null, $compile_id = null)
{
if (!$tpl)
return $smarty->clearAllCache();
return $smarty->clearCache($tpl, $cache_id, $compile_id);
}
/**