コード例 #1
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockhomecategories';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #2
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'tmnewproducts';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #3
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockmobilecart-column';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #4
0
 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;
 }
コード例 #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));
 }
コード例 #6
0
ファイル: blockspecials.php プロジェクト: zangles/lennyba
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockspecials';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #7
0
ファイル: blocktopmenu.php プロジェクト: dev-lav/htdocs
 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');
 }
コード例 #8
0
 protected function getCacheId()
 {
     if ($name === NULL) {
         $name = 'topfootercms';
         return parent::getCacheId($name . '|' . date('Ymd'));
     }
 }
コード例 #9
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockbestsellercities';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #10
0
ファイル: default.php プロジェクト: demental/m
 public function getCacheId($action)
 {
     return parent::getCacheId($action);
 }
コード例 #11
0
ファイル: flexiblebrands.php プロジェクト: habypk/zocart
 function getCacheId($name = null)
 {
     return parent::getCacheId('flexiblebrand|' . $name);
 }
コード例 #12
0
 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'iqitcontentcreator';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #13
0
ファイル: oviccustomtags.php プロジェクト: habypk/zocart
 function getCacheId($name = null)
 {
     return parent::getCacheId('oviccustomtags|' . $name);
 }
コード例 #14
0
 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);
 }
コード例 #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));
 }
コード例 #16
0
 public function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockoffers';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
コード例 #17
0
ファイル: blocksearch.php プロジェクト: FAVHYAN/a3workout
 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId($name);
     return $cache_id . '_' . (int) Tools::usingSecureMode();
 }
コード例 #18
0
ファイル: leoblog.php プロジェクト: pacxs/pacxscom
 protected function getCacheId($name = null)
 {
     $name = ($name ? $name . '|' : '') . implode('-', Customer::getGroupsStatic($this->context->customer->id));
     return parent::getCacheId($name);
 }
コード例 #19
0
 public function getCacheId($id_product = null)
 {
     return parent::getCacheId() . '|' . (int) $id_product;
 }
コード例 #20
0
 function getCacheId($name = null)
 {
     return parent::getCacheId('groupcategory|' . $name);
 }
コード例 #21
0
ファイル: blockcms.php プロジェクト: pacxs/pacxscom
 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blockcms|' . $name);
 }
コード例 #22
0
 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blocknewproducts|' . date('Ymd'));
 }
コード例 #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) : '');
 }
コード例 #24
0
ファイル: iqitmegamenu.php プロジェクト: evgrishin/se1614
 public function getCacheId($cache = 10)
 {
     return parent::getCacheId() . '|' . (int) $cache;
 }