Unverified Commit e37c2375 authored by Alex Pott's avatar Alex Pott
Browse files

task: #3584329 Re-evaluate skipping the chained fast backend in the installer

By: catch
By: ishani patel
(cherry picked from commit 4f2ff40d)
parent 8ba75262
Loading
Loading
Loading
Loading
Loading
+1 −6
Changes for core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@

namespace Drupal\Core\Cache;

use Drupal\Core\Installer\InstallerKernel;
use Drupal\Core\Site\Settings;
use Psr\Container\ContainerInterface;

@@ -68,12 +67,8 @@ public function __construct(?Settings $settings = NULL, $consistent_service_name

    $this->consistentServiceName = $consistent_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 (!InstallerKernel::installationAttempted()) {
    $this->fastServiceName = $fast_service_name;
    }

  }

  /**