From f557f24df4d53b1af72dce83b3d26c61498f5ad3 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 6 Aug 2013 10:41:31 +0200 Subject: [PATCH] // Fixed module cache key (with the country) --- classes/module/Module.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/classes/module/Module.php b/classes/module/Module.php index f12279e73..b323204b6 100644 --- a/classes/module/Module.php +++ b/classes/module/Module.php @@ -1622,9 +1622,16 @@ abstract class ModuleCore protected function getCacheId($name = null) { - if ($name === null) - $name = $this->name; - return $name.'|'.(int)Tools::usingSecureMode().'|'.(int)$this->context->shop->id.'|'.(int)Group::getCurrent()->id.'|'.(int)$this->context->language->id.'|'.(int)$this->context->currency->id; + $cache_array = array( + $name !== null ? $name : $this->name, + (int)Tools::usingSecureMode(), + (int)$this->context->shop->id, + (int)Group::getCurrent()->id, + (int)$this->context->language->id, + (int)$this->context->currency->id, + (int)$this->context->country->id + ); + return implode('|', $cache_array); } public function display($file, $template, $cacheId = null, $compileId = null)