diff --git a/core/lib/Drupal/Core/Cache/CacheFactory.php b/core/lib/Drupal/Core/Cache/CacheFactory.php index d9b39e4..b1f6471 100644 --- a/core/lib/Drupal/Core/Cache/CacheFactory.php +++ b/core/lib/Drupal/Core/Cache/CacheFactory.php @@ -80,6 +80,12 @@ public function get($bin) { // Fall back to the database backend if nothing else is configured. $service_name = 'cache.backend.database'; } + + // Fall back to the database backend if specified service is missing. + if (!$this->container->has($service_name)) { + $service_name = 'cache.backend.database'; + } + return $this->container->get($service_name)->get($bin); }