Commit 120c40d1 authored by catch's avatar catch

Issue #2113169 by damiankloip, Xano, sun, catch: Memory backend defined as a...

Issue #2113169 by damiankloip, Xano, sun, catch: Memory backend defined as a service in core.services.yml.
parent cdab74ee
......@@ -7,8 +7,6 @@ services:
cache.backend.database:
class: Drupal\Core\Cache\DatabaseBackendFactory
arguments: ['@database']
cache.backend.memory:
class: Drupal\Core\Cache\MemoryBackendFactory
cache.bootstrap:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
......
......@@ -222,7 +222,7 @@ public function containerBuild(ContainerBuilder $container) {
$this->container->setParameter('language.default_values', Language::$defaultValues);
$container->register('lock', 'Drupal\Core\Lock\NullLockBackend');
$this->settingsSet('cache', array('default' => 'cache.backend.memory'));
$container->register('cache_factory', 'Drupal\Core\Cache\MemoryBackendFactory');
$container
->register('config.storage', 'Drupal\Core\Config\FileStorage')
......
......@@ -39,8 +39,6 @@ function setUp() {
'directory' => DRUPAL_ROOT . '/' . $this->public_files_directory . '/php',
'secret' => drupal_get_hash_salt(),
)));
// Use a non-persistent cache to avoid queries to non-existing tables.
$this->settingsSet('cache', array('default' => 'cache.backend.memory'));
}
/**
......
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