Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
@@ -1622,9 +1622,16 @@ abstract class ModuleCore
|
|||||||
|
|
||||||
protected function getCacheId($name = null)
|
protected function getCacheId($name = null)
|
||||||
{
|
{
|
||||||
if ($name === null)
|
$cache_array = array(
|
||||||
$name = $this->name;
|
$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;
|
(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)
|
public function display($file, $template, $cacheId = null, $compileId = null)
|
||||||
|
|||||||
Reference in New Issue
Block a user