Commit 120c40d1 authored by catch's avatar catch
Browse files

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: ...@@ -7,8 +7,6 @@ services:
cache.backend.database: cache.backend.database:
class: Drupal\Core\Cache\DatabaseBackendFactory class: Drupal\Core\Cache\DatabaseBackendFactory
arguments: ['@database'] arguments: ['@database']
cache.backend.memory:
class: Drupal\Core\Cache\MemoryBackendFactory
cache.bootstrap: cache.bootstrap:
class: Drupal\Core\Cache\CacheBackendInterface class: Drupal\Core\Cache\CacheBackendInterface
tags: tags:
......
...@@ -222,7 +222,7 @@ public function containerBuild(ContainerBuilder $container) { ...@@ -222,7 +222,7 @@ public function containerBuild(ContainerBuilder $container) {
$this->container->setParameter('language.default_values', Language::$defaultValues); $this->container->setParameter('language.default_values', Language::$defaultValues);
$container->register('lock', 'Drupal\Core\Lock\NullLockBackend'); $container->register('lock', 'Drupal\Core\Lock\NullLockBackend');
$this->settingsSet('cache', array('default' => 'cache.backend.memory')); $container->register('cache_factory', 'Drupal\Core\Cache\MemoryBackendFactory');
$container $container
->register('config.storage', 'Drupal\Core\Config\FileStorage') ->register('config.storage', 'Drupal\Core\Config\FileStorage')
......
...@@ -39,8 +39,6 @@ function setUp() { ...@@ -39,8 +39,6 @@ function setUp() {
'directory' => DRUPAL_ROOT . '/' . $this->public_files_directory . '/php', 'directory' => DRUPAL_ROOT . '/' . $this->public_files_directory . '/php',
'secret' => drupal_get_hash_salt(), '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