/** * Get cache tags for the block's content * @return array */ function getCacheTags() { if (Zend_Registry::isRegistered('content_id')) { return array('node_' . Zend_Registry::get('content_id')); } return parent::getCacheTags(); }
/** * Get cache tags for the block's content * @return array */ function getCacheTags() { if (Zend_Registry::get('context')->node) { return array('node_' . Zend_Registry::get('context')->node->id); } return parent::getCacheTags(); }