/** * Get tags array for saving cache * * @return array */ public function getCacheTags() { if (Mage::getSingleton('customer/session')->isLoggedIn()) { $this->addModelTags(Mage::getSingleton('customer/session')->getCustomer()); } return parent::getCacheTags(); }
/** * Get tags array for saving cache * * @return array */ public function getCacheTags() { if ($this->_getSession()->isLoggedIn()) { $this->addModelTags($this->_getSession()->getCustomer()); } return parent::getCacheTags(); }
public function getCacheTags() { if (!$this->_isCacheActive()) { return parent::getCacheTags(); } $cacheTags = array(Mage_Catalog_Model_Product::CACHE_TAG, Mage_Catalog_Model_Product::CACHE_TAG . '_' . $this->getPid()); return $cacheTags; }
public function getCacheTags() { if (!$this->_isCacheActive()) { return parent::getCacheTags(); } $cacheTags = array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Catalog_Model_Category::CACHE_TAG . '_' . $this->_category->getId()); foreach ($this->_getProductCollection() as $_product) { $cacheTags[] = Mage_Catalog_Model_Product::CACHE_TAG . "_" . $_product->getId(); } return $cacheTags; }
public function getCacheTags() { $tag = md5($this->getData('post_link')); $parentBlock = $this; //Find parent block which caches its content and add the tag //to prevent effect of nested caching while ($parentBlock = $parentBlock->getParentBlock()) { if ($parentBlock instanceof Mage_Core_Block_Template && !$parentBlock instanceof Mage_Page_Block_Html) { $tags = (array) $parentBlock->getData('cache_tags'); $tags[] = $tag; $parentBlock->setData('cache_tags', $tags); break; } } $tags = parent::getCacheTags(); $tags[] = $tag; return $tags; }
/** * Retrieve block cache tags based on options collection * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->_getTestimonialsCollection())); }
/** * Retrieve block cache tags * * @return array */ public function getCacheTags() { $tags = $this->getProduct()->getCacheIdTags(); $tags = is_array($tags) ? $tags : array(); return array_merge(parent::getCacheTags(), $tags); }
/** * Retrieve block cache tags * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->_getItemProducts())); }
/** * Retrieve block cache tags * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->_getProduct()->getCacheIdTags()); }
/** * Retrieve block cache tags based on category * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getCurrentCategory()->getCacheIdTags()); }
/** * Retrieve block cache tags based on product collection * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->getItemsTags($this->getLoadedProductCollection())); }
/** * Retrieve the cache tags * @return array */ public function getCacheTags() { $tags = parent::getCacheTags(); array_push($tags, AntoineK_Slider_Helper_Data::CACHE_TAG); return $tags; }