Commit 05c5f375 authored by Jeremy's avatar Jeremy Committed by Jeremy

Issue #2419757 by Jeremy, Fabianx, steel-track: Stampede Protection can cause...

Issue #2419757 by Jeremy, Fabianx, steel-track: Stampede Protection can cause performance degradation for some cache bins
parent 06e93485
......@@ -141,12 +141,11 @@ specific bins, or cid's starting with a specific prefix in specific bins. For
example:
$conf['memcache_stampede_protection_ignore'] = array(
// Ignore stampede protection for the entire 'cache_example' bin.
'cache_example',
// Ignore some cids in 'cache_bootstrap'.
'cache_bootstrap' => array(
'module_implements',
'variables',
'lookup_cache',
'schema:runtime:*',
'theme_registry:runtime:*',
),
......@@ -154,6 +153,10 @@ example:
'cache' => array(
'i18n:string:*',
),
// Disable stampede protection for the entire 'cache_path' and 'cache_rules'
// bins.
'cache_path',
'cache_rules',
);
Only change the following stampede protection tunables if you're sure you know
......
......@@ -516,6 +516,8 @@ class MemCacheDrupal implements DrupalCacheInterface {
'module_implements',
// Variables have their own lock protection.
'variables',
// Delayed set.
'lookup_cache',
// Both schema and the theme_registry uses DrupalCacheArray, which sets
// the cache entry with a class destructor.
'schema:runtime:*',
......@@ -523,9 +525,11 @@ class MemCacheDrupal implements DrupalCacheInterface {
),
// Disable stampede protection for cid prefix in 'cache'.
'cache' => array(
// I18n uses a class destructor to write the cache.
// I18n uses a class destructor to set the cache.
'i18n:string:*',
),
// Delayed set.
'cache_path',
// Disable stampede protection for the contrib cache_rules bin as recent
// versions of the rules module provides its own stampede protection.
'cache_rules',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment