// Clear smarty cache on entities updates
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15730 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+5
-3
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user