/** * Clear cache when any category or the associated product is edited * * @return array */ public function getCacheTags() { $tags = parent::getCacheTags(); $tags[] = self::CACHE_TAG; $tags[] = Mage_Catalog_Model_Category::CACHE_TAG; $tags[] = Mage_Catalog_Model_Product::CACHE_TAG . '_' . $this->getProduct()->getId(); return $tags; }
/** * Retrieve block cache tags based on product collection * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->_getProductCollection())); }
/** * Retrieve block cache tags * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getProduct()->getCacheIdTags()); }
/** * Retrieve block cache tags based on product collection * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->getLoadedProductCollectionpro($id))); }
/** * Get tags array for saving cache * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->getItems())); }