From 2776a3876425ff3f2d40cfb82e6561ed7d6e1f5a Mon Sep 17 00:00:00 2001 From: djfm Date: Fri, 11 Sep 2015 10:22:52 +0200 Subject: [PATCH] // removed cache for now --- blocktopmenu.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/blocktopmenu.php b/blocktopmenu.php index 04f3888..7f7fa2c 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -90,8 +90,6 @@ class Blocktopmenu extends Module implements WidgetInterface return false; } - $this->clearMenuCache(); - if ($delete_params) { if (!$this->installDb() || !Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_ITEMS', 'CAT3,CAT26')) { return false; @@ -929,7 +927,7 @@ class Blocktopmenu extends Module implements WidgetInterface protected function clearMenuCache() { - $this->_clearCache('blocktopmenu.tpl'); + } public function hookActionShopDataDuplication($params) @@ -1334,6 +1332,12 @@ class Blocktopmenu extends Module implements WidgetInterface public function getWidgetVariables($hookName, array $configuration) { + // TODO: caching + /* + $id_lang = (int)$this->context->language->id; + $id_shop = (int)Shop::getContextShopID(); + */ + return $this->makeMenu(); }