public function getCacheKeyInfo() { if ($this->getBlockId()) { return array(Mage_Cms_Model_Block::CACHE_TAG, Mage::app()->getStore()->getId(), $this->getBlockId(), (int) Mage::app()->getStore()->isCurrentlySecure()); } else { return parent::getCacheKeyInfo(); } }
public function getCacheKeyInfo() { $blockId = $this->getBlockId(); if ($blockId) { $result = array($blockId, Mage::app()->getStore()->getCode()); } else { $result = parent::getCacheKeyInfo(); } return $result; }