/**
  * 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;
 }
Beispiel #2
0
 /**
  * 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());
 }
Beispiel #4
0
 /**
  * Retrieve block cache tags based on product collection
  *
  * @return array
  */
 public function getCacheTags()
 {
     return array_merge(parent::getCacheTags(), $this->getItemsTags($this->getLoadedProductCollectionpro($id)));
 }
Beispiel #5
0
 /**
  * Get tags array for saving cache
  *
  * @return array
  */
 public function getCacheTags()
 {
     return array_merge(parent::getCacheTags(), $this->getItemsTags($this->getItems()));
 }