Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save splendidinternet/1011933 to your computer and use it in GitHub Desktop.
Save splendidinternet/1011933 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