[-] FO: Add the protocol content to the cache id of modules #PSCFV-8810
This commit is contained in:
1 parent
a172632600
commit
39e3b079dd
4 files changed
+3
-9
No files matched your search
@@ -1597,7 +1597,7 @@ abstract class ModuleCore
|
|||||||
{
|
{
|
||||||
if ($name === null)
|
if ($name === null)
|
||||||
$name = $this->name;
|
$name = $this->name;
|
||||||
return $name.'|'.(int)$this->context->shop->id.'|'.(int)Group::getCurrent()->id.'|'.(int)$this->context->language->id;
|
return $name.'|'.(int)Tools::usingSecureMode().'|'.(int)$this->context->shop->id.'|'.(int)Group::getCurrent()->id.'|'.(int)$this->context->language->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function display($file, $template, $cacheId = null, $compileId = null)
|
public function display($file, $template, $cacheId = null, $compileId = null)
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ class BlockCategories extends Module
|
|||||||
$id_product = (int)Tools::getValue('id_product', 0);
|
$id_product = (int)Tools::getValue('id_product', 0);
|
||||||
$id_category = (int)Tools::getValue('id_category', 0);
|
$id_category = (int)Tools::getValue('id_category', 0);
|
||||||
$id_lang = (int)$this->context->language->id;
|
$id_lang = (int)$this->context->language->id;
|
||||||
return 'blockcategories|'.$this->context->shop->id.'|'.$groups.'|'.$id_lang.'|'.$id_product.'|'.$id_category;
|
return 'blockcategories|'.(int)Tools::usingSecureMode().'|'.$this->context->shop->id.'|'.$groups.'|'.$id_lang.'|'.$id_product.'|'.$id_category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookFooter($params)
|
public function hookFooter($params)
|
||||||
|
|||||||
@@ -117,11 +117,5 @@ public function hookDisplayMobileHeader($params)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getCacheId($name = null)
|
|
||||||
{
|
|
||||||
$cache_id = parent::getCacheId($name);
|
|
||||||
return $cache_id.'|'.(int)Tools::usingSecureMode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -717,7 +717,7 @@ class Blocktopmenu extends Module
|
|||||||
{
|
{
|
||||||
parent::getCacheId($name);
|
parent::getCacheId($name);
|
||||||
$page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
|
$page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
|
||||||
return 'blocktopmenu|'.$page_name.'|'.(int)$this->context->shop->id.'|'.implode(', ',$this->user_groups).'|'.(int)$this->context->language->id.'|'.(int)Tools::getValue('id_category').'|'.(int)Tools::getValue('id_manufacturer').'|'.(int)Tools::getValue('id_supplier').'|'.(int)Tools::getValue('id_cms').'|'.(int)Tools::getValue('id_product');
|
return 'blocktopmenu|'.(int)Tools::usingSecureMode().'|'.$page_name.'|'.(int)$this->context->shop->id.'|'.implode(', ',$this->user_groups).'|'.(int)$this->context->language->id.'|'.(int)Tools::getValue('id_category').'|'.(int)Tools::getValue('id_manufacturer').'|'.(int)Tools::getValue('id_supplier').'|'.(int)Tools::getValue('id_cms').'|'.(int)Tools::getValue('id_product');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookDisplayTop($param)
|
public function hookDisplayTop($param)
|
||||||
|
|||||||
Reference in new issue
Block a user