/** * This method will dispatch the event 'jv_cache_save_block' when cache is saved for a html block. * * {@inheritdoc} */ public function save($data, $id, $tags = array(), $specificLifetime = false) { if (in_array($this->getFrontendPrefix() . 'BLOCK_HTML', $tags)) { $transportObject = new Varien_Object(); /** @noinspection PhpUndefinedMethodInspection */ $transportObject->setTags($tags); Mage::dispatchEvent('jv_cache_save_block', array('id' => $id, 'transport' => $transportObject)); /** @noinspection PhpUndefinedMethodInspection */ $tags = $transportObject->getTags(); } return parent::save($data, $id, $tags, $specificLifetime); }