Skip to content
This repository has been archived by the owner. It is now read-only.
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Stampede-Resistant Config Cache

This modified version of Mage_Core_Model_Config fixes or at least improves the tendency of high-traffic sites to cause stampeding issues around the config cache. This issue exists with all backends and is most prevelant in stores that have large configurations, many store scopes, or particularly slow cache backends.

The changes are as follows:

  • If the cache lock flag is present, sleep for half a second and check again for up to 5 seconds rather than immediately considering the request a miss.
  • Start the cache lock as soon as save starts rather than after separating and serializing the sub-sections.
  • Do not clear the config tag when saving the cache.
  • Resolve a time sensitive cache hit issue where invalid data is saved to cache.

About This Repository

This repository contains a Composer installable version of Colin Mollenhour's work ( Colin deserves all of the credit for the idea and it's implementation, we just did the composer.json! This also contains a fix from Luke Rodgers (


Composer installable version of Colin Mollenhour's Stampede Resistant Config Cache



No releases published


No packages published

Contributors 4