From 77b8e106f7c0c7dca762d975fe0bc0cd95805f28 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 2 May 2013 11:41:49 +0200 Subject: [PATCH] [-] MO : fixed hug #PSCFV-8994 - clear cache when truncate catalog --- modules/pscleaner/pscleaner.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/pscleaner/pscleaner.php b/modules/pscleaner/pscleaner.php index cbdd8ac7f..b3ccae0f0 100644 --- a/modules/pscleaner/pscleaner.php +++ b/modules/pscleaner/pscleaner.php @@ -491,6 +491,7 @@ class PSCleaner extends Module $db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0'); break; } + $this->clearAllCaches(); } public static function cleanAndOptimize() @@ -520,4 +521,11 @@ class PSCleaner extends Module } return $array; } + + protected function clearAllCaches() + { + $this->_clearCache('blockcategories.tpl'); + $this->_clearCache('blockcategories_footer.tpl'); + $this->_clearCache('blocktopmenu.tpl'); + } }