Issue #2422657 by Berdir: Skip fast chained cache backend in maintenance mode

8.0.x
Alex Pott 2015-02-15 10:37:31 +00:00
parent ade57a9e04
commit a53a61f6b9
1 changed files with 7 additions and 1 deletions

View File

@ -58,7 +58,13 @@ class ChainedFastBackendFactory implements CacheFactoryInterface {
}
$this->consistentServiceName = $consistent_service_name;
$this->fastServiceName = $fast_service_name;
// Do not use the fast chained backend during installation. In those cases,
// we expect many cache invalidations and writes, the fast chained cache
// backend performs badly in such a scenario.
if (!drupal_installation_attempted()) {
$this->fastServiceName = $fast_service_name;
}
}
/**