Skip to content

Instantly share code, notes, and snippets.

@Maksold
Last active Oct 25, 2018
Embed
What would you like to do?
#magento - block caching
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