/** * 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[] = parent::getParamKey('p') . parent::getParamKey('limit'); $keys[] = 'product_' . $this->getProductId(); $keys[] = 'catalog_product_view'; return $keys; }