Commit 14cbede9 authored by dawehner's avatar dawehner Committed by Jeremy

Issue #2381829 by dawehner: Disable stampede protection for the theme registry, schema and rules

parent fc5df69e
......@@ -142,7 +142,9 @@ example:
// Ignore some cids in 'cache_bootstrap'.
'cache_bootstrap' => array(
'module_implements',
'variables'
'variables',
'schema:runtime:*',
'theme_registry:runtime:*',
),
// Ignore all cids in the 'cache' bin starting with 'i18n:string:'
'cache' => array(
......
......@@ -505,13 +505,20 @@ class MemCacheDrupal implements DrupalCacheInterface {
// The module_implements cache is written after finishing the request.
'module_implements',
// Variables have their own lock protection.
'variables'
'variables',
// Both schema and the theme_registry uses DrupalCacheArray, which sets
// the cache entry with a class destructor.
'schema:runtime:*',
'theme_registry:runtime:*',
),
// Disable stampede protection for cid prefix in 'cache'.
'cache' => array(
// I18n uses a class destructor to write the cache.
'i18n:string:*',
),
// Disable stampede protection for the contrib cache_rules bin as recent
// versions of the rules module provides its own stampede protection.
'cache_rules',
));
// Support ignoring an entire bin.
......
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