protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockhomecategories';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'tmnewproducts';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockmobilecart-column';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
 protected function getCacheId($name = null)
 {
     parent::getCacheId($name);
     $groups = implode(', ', Customer::getGroupsStatic((int) $this->context->customer->id));
     $id_product = (int) Tools::getValue('id_product', 0);
     $id_category = (int) Tools::getValue('id_category', 0);
     $id_lang = (int) $this->context->language->id;
     return 'blockcategories|' . (int) Tools::usingSecureMode() . '|' . $this->context->shop->id . '|' . $groups . '|' . $id_lang . '|' . $id_product . '|' . $id_category;
 }
Example #5
0
 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId();
     if ($name !== null) {
         $cache_id .= '|' . $name;
     }
     if ((Tools::getValue('id_product') || Tools::getValue('id_category')) && isset($this->context->cookie->last_visited_category) && $this->context->cookie->last_visited_category) {
         $cache_id .= '|' . (int) $this->context->cookie->last_visited_category;
     }
     return $cache_id . '|' . implode('-', Customer::getGroupsStatic($this->context->customer->id));
 }
Example #6
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockspecials';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
Example #7
0
 protected function getCacheId($name = null)
 {
     parent::getCacheId($name);
     $page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
     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');
 }
Example #8
0
 protected function getCacheId()
 {
     if ($name === NULL) {
         $name = 'topfootercms';
         return parent::getCacheId($name . '|' . date('Ymd'));
     }
 }
Example #9
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockbestsellercities';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
Example #10
0
 public function getCacheId($action)
 {
     return parent::getCacheId($action);
 }
Example #11
0
 function getCacheId($name = null)
 {
     return parent::getCacheId('flexiblebrand|' . $name);
 }
Example #12
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'iqitcontentcreator';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
Example #13
0
 function getCacheId($name = null)
 {
     return parent::getCacheId('oviccustomtags|' . $name);
 }
 public function getCacheId($name = null)
 {
     if ($name === null && isset($this->context->smarty->tpl_vars['page_name'])) {
         return parent::getCacheId($this->context->smarty->tpl_vars['page_name']->value);
     }
     return parent::getCacheId($name);
 }
Example #15
0
 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId();
     if ($name !== null) {
         $cache_id .= '|' . $name;
     }
     return $cache_id . '|' . implode('-', Customer::getGroupsStatic($this->context->customer->id));
 }
Example #16
0
 public function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockoffers';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
Example #17
0
 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId($name);
     return $cache_id . '_' . (int) Tools::usingSecureMode();
 }
Example #18
0
 protected function getCacheId($name = null)
 {
     $name = ($name ? $name . '|' : '') . implode('-', Customer::getGroupsStatic($this->context->customer->id));
     return parent::getCacheId($name);
 }
 public function getCacheId($id_product = null)
 {
     return parent::getCacheId() . '|' . (int) $id_product;
 }
Example #20
0
 function getCacheId($name = null)
 {
     return parent::getCacheId('groupcategory|' . $name);
 }
Example #21
0
 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blockcms|' . $name);
 }
 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blocknewproducts|' . date('Ymd'));
 }
Example #23
0
 protected function getCacheId($name = null)
 {
     $page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
     return parent::getCacheId() . '|' . $page_name . ($page_name != 'index' ? '|' . (int) Tools::getValue('id_' . $page_name) : '');
 }
Example #24
0
 public function getCacheId($cache = 10)
 {
     return parent::getCacheId() . '|' . (int) $cache;
 }