Skip to content

Instantly share code, notes, and snippets.

@Maksold
Last active October 25, 2018 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maksold/3873543 to your computer and use it in GitHub Desktop.
Save Maksold/3873543 to your computer and use it in GitHub Desktop.
#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