/**
  * Get cache key informative items
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if (null === $this->_cacheKeyInfo) {
         $this->_cacheKeyInfo = parent::getCacheKeyInfo() + array('crumbs' => base64_encode(serialize($this->_crumbs)), 'name' => $this->getNameInLayout());
     }
     return $this->_cacheKeyInfo;
 }
Esempio n. 2
0
 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     if (Mage::registry('product')) {
         $info['product_id'] = Mage::registry('product')->getId();
     }
     return $info;
 }
 /**
  * Get cache key informative items
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     if ($id = $this->getUniqueId()) {
         $info['unique_id'] = (string) $id;
     }
     return $info;
 }
Esempio n. 4
0
 public function getCacheKeyInfo()
 {
     $id = $this->getData('slideshow_id');
     if ($id) {
         $result = array('cdz_revslideshow', Mage::app()->getStore()->getId(), (int) Mage::app()->getStore()->isCurrentlySecure(), Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), serialize($this->getData()));
     } else {
         $result = parent::getCacheKeyInfo();
     }
     return $result;
 }
Esempio n. 5
0
 public function getCacheKeyInfo()
 {
     if (!($zip = Mage::registry('bloom_nations_zipcode'))) {
         $zip = $_COOKIE['bloom_nations_zipcode'];
     }
     $info = parent::getCacheKeyInfo();
     $info['zip'] = $zip;
     $info['module'] = 'catView';
     $info['category'] = Mage::registry('current_category')->getId();
     return $info;
 }
Esempio n. 6
0
 /**
  * Get cache key informative items
  * Provide string array key to share specific info item with FPC placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if (is_null($this->_cacheKeyInfo)) {
         $links = array();
         if (!empty($this->_links)) {
             foreach ($this->_links as $position => $link) {
                 if ($link instanceof Varien_Object) {
                     $links[$position] = $link->getData();
                 }
             }
         }
         $this->_cacheKeyInfo = parent::getCacheKeyInfo() + array('links' => base64_encode(serialize($links)), 'name' => $this->getNameInLayout());
     }
     return $this->_cacheKeyInfo;
 }
 /**
  * Get cache key informative items that must be preserved in cache placeholders
  * for block to be rerendered by placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $items = array('templates' => serialize($this->_templates));
     $items = parent::getCacheKeyInfo() + $items;
     return $items;
 }
 /**
  * Get cache key informative items that must be preserved in cache placeholders
  * for block to be rerendered by placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $items = array('name' => $this->getNameInLayout(), 'types' => $this->getTypes(), 'display_mode' => $this->getDisplayMode(), 'rotate' => (string) $this->getRotate(), 'banner_ids' => implode(',', $this->getBannerIds()), 'unique_id' => $this->getUniqueId());
     $items = parent::getCacheKeyInfo() + $items;
     return $items;
 }
Esempio n. 9
0
 /**
  * Get Key pieces for caching block content
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if ($this->hasData('cache_key_info')) {
         return $this->getData('cache_key_info');
     }
     return parent::getCacheKeyInfo();
 }
Esempio n. 10
0
 /**
  * Retrieve values of properties that unambiguously identify unique content
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $result = parent::getCacheKeyInfo();
     $blockId = $this->getBlockId();
     if ($blockId) {
         $result[] = $blockId;
     }
     return $result;
 }
Esempio n. 11
0
 public function getCacheKeyInfo()
 {
     return array_merge(parent::getCacheKeyInfo(), array(Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), Mage::getSingleton('customer/session')->getCustomerGroupId(), $this->getCategoryId()));
 }
Esempio n. 12
0
 /**
  * {@inheritdoc}
  */
 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     $blockId = $this->getBlockId();
     if ($blockId) {
         $info[] = 'CMSBLOCK_' . $blockId;
     }
     return $info;
 }
Esempio n. 13
0
 public function testGetCacheKeyInfo()
 {
     $this->assertArrayHasKey('template', $this->_block->getCacheKeyInfo());
 }
Esempio n. 14
0
 public function getCacheKeyInfo()
 {
     $design = Mage::getDesign();
     return array_merge(parent::getCacheKeyInfo(), array($this->getData('uri'), $design->getTheme('layout'), $design->getTheme('locale')));
 }
 public function getCacheKeyInfo()
 {
     return array_merge(parent::getCacheKeyInfo(), array('dialog_slider'));
 }