Last active
August 29, 2015 14:26
-
-
Save steverobbins/dc79f661c55a56fcbca2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r magento-CE-1.9.2.0/app/code/core/Mage/Cms/Block/Block.php magento-CE-1.9.2.1/app/code/core/Mage/Cms/Block/Block.php | |
74a75,94 | |
> | |
> /** | |
> * Retrieve values of properties that unambiguously identify unique content | |
> * | |
> * @return array | |
> */ | |
> public function getCacheKeyInfo() | |
> { | |
> $blockId = $this->getBlockId(); | |
> if ($blockId) { | |
> $result = array( | |
> 'CMS_BLOCK', | |
> $blockId, | |
> Mage::app()->getStore()->getCode(), | |
> ); | |
> } else { | |
> $result = parent::getCacheKeyInfo(); | |
> } | |
> return $result; | |
> } | |
diff -r magento-CE-1.9.2.0/app/code/core/Mage/Cms/Block/Widget/Block.php magento-CE-1.9.2.1/app/code/core/Mage/Cms/Block/Widget/Block.php | |
84a85 | |
> $this->addModelTags($block); | |
90a92,106 | |
> | |
> /** | |
> * Retrieve values of properties that unambiguously identify unique content | |
> * | |
> * @return array | |
> */ | |
> public function getCacheKeyInfo() | |
> { | |
> $result = parent::getCacheKeyInfo(); | |
> $blockId = $this->getBlockId(); | |
> if ($blockId) { | |
> $result[] = $blockId; | |
> } | |
> return $result; | |
> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment