Last active
October 25, 2018 12:49
-
-
Save Maksold/3873543 to your computer and use it in GitHub Desktop.
#magento - block caching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function _construct() | |
{ | |
parent::_construct(); | |
$this->addData(array( | |
'cache_lifetime' => 86400, | |
'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment