[-] MO : fixed hug #PSCFV-8994 - clear cache when truncate catalog

This commit is contained in:
vAugagneur
2013-05-02 11:41:49 +02:00
parent 46f7922a8f
commit 77b8e106f7
+8
View File
@@ -491,6 +491,7 @@ class PSCleaner extends Module
$db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0'); $db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0');
break; break;
} }
$this->clearAllCaches();
} }
public static function cleanAndOptimize() public static function cleanAndOptimize()
@@ -520,4 +521,11 @@ class PSCleaner extends Module
} }
return $array; return $array;
} }
protected function clearAllCaches()
{
$this->_clearCache('blockcategories.tpl');
$this->_clearCache('blockcategories_footer.tpl');
$this->_clearCache('blocktopmenu.tpl');
}
} }