What is the difference between cache_key and cache_tags in Magento?
protected function _construct() { $this->addData(array( 'cache_lifetime' => 120, 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG . "_" . $this->getProduct()->getId()), 'cache_key' => $this->getProduct()->getId(), )); } Both seem to be unique (applying to only one output). I understand that cache_tags relate to cache types in backend, but why does it have to be unique if we already have cache_key being unique?
Will having a generic cache_tags cause all block instances to have the same output?
Thanks
store_idtocache_tags.Mage_Core_Model_Abstract::getCacheIdTags()