Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created May 13, 2011 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fbrnc/971320 to your computer and use it in GitHub Desktop.
Save fbrnc/971320 to your computer and use it in GitHub Desktop.
Patch for Magento's two-level cache priority bug
Index: lib/Varien/Cache/Core.php
===================================================================
--- lib/Varien/Cache/Core.php (revision 63515)
+++ lib/Varien/Cache/Core.php (working copy)
@@ -70,7 +70,7 @@
* @throws Zend_Cache_Exception
* @return boolean True if no problem
*/
- public function save($data, $id = null, $tags = array(), $specificLifetime = false, $priority = 8)
+ public function save($data, $id = null, $tags = array(), $specificLifetime = false, $priority = 10)
{
$tags = $this->_tags($tags);
return parent::save($data, $id, $tags, $specificLifetime, $priority);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment