From 2f5f6159ff601bda22d42e38036f6fa980e9d130 Mon Sep 17 00:00:00 2001 From: sfroment42 Date: Wed, 24 Sep 2014 14:58:33 +0200 Subject: [PATCH] // add clear cache --- blocktopmenu.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blocktopmenu.php b/blocktopmenu.php index a8e970f..c8d9de5 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -86,6 +86,8 @@ class Blocktopmenu extends Module !$this->registerHook('actionShopDataDuplication')) return false; + $this->clearMenuCache(); + if ($delete_params) if (!$this->installDb() || !Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_ITEMS', 'CAT3,CAT26') || !Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_SEARCH', '1')) return false; @@ -118,6 +120,8 @@ class Blocktopmenu extends Module if (!parent::uninstall()) return false; + $this->clearMenuCache(); + if ($delete_params) if (!$this->uninstallDB() || !Configuration::deleteByName('MOD_BLOCKTOPMENU_ITEMS') || !Configuration::deleteByName('MOD_BLOCKTOPMENU_SEARCH')) return false;