/** * Retrieve cache key data * * @return array */ public function getCacheKeyInfo() { $cacheId = parent::getCacheKeyInfo(); $cacheId['menu_id'] = $this->getMenuId(); return $cacheId; }
/** * Add navigation can show state to block cache keys * * @return array * @see Mage_Page_Block_Html_Topmenu::getCacheKeyInfo */ public function getCacheKeyInfo() { $cacheId = parent::getCacheKeyInfo(); $cacheId['can_show_navigation'] = Mage::helper('privatesales')->canShowNavigation(); $cacheId['short_cache_id'] = md5(implode('|', array_values($cacheId))); return $cacheId; }