/** * Get cache key informative items * * @return array */ public function getCacheKeyInfo() { $keys = $this->getBlock()->getCacheKeyInfo() + parent::getDefaultKeys(); $keys[] = (int) Mage::app()->getStore()->isCurrentlySecure(); $keys[] = Mage::app()->getStore()->getCurrentCurrencyCode(); $keys[] = Mage::getSingleton('customer/session')->isLoggedIn() ? 'loggedin' : 'loggedout'; $keys[] = $this->getBlock()->getNameInLayout(); $keys[] = 'category_' . Mage::app()->getRequest()->getParam('id'); $keys[] = $this->_generateCategoryKey('catalog_category_list'); return $keys; }
/** * Get cache key informative items * * @return array */ public function getCacheKeyInfo() { $keys = $this->getBlock()->getCacheKeyInfo() + parent::getDefaultKeys(); $keys[] = (int) Mage::app()->getStore()->isCurrentlySecure(); $keys[] = Mage::app()->getStore()->getCurrentCurrencyCode(); $keys[] = Mage::getSingleton('customer/session')->isLoggedIn() ? 'loggedin' : 'loggedout'; $keys[] = $this->getBlock()->getNameInLayout(); $keys[] = 'product_' . $this->getProductId(); $keys[] = 'review_product_view'; return $keys; }
/** * Get cache key informative items * * @return array */ public function getCacheKeyInfo() { return $this->getBlock()->getCacheKeyInfo() + parent::getDefaultKeys(); }