Skip to content
Snippets Groups Projects
Commit fdb0db8e authored by catch's avatar catch
Browse files

Issue #2754003 by Berdir, Wim Leers: Move more cache items from the default to...

Issue #2754003 by Berdir, Wim Leers: Move more cache items from the default to the bootstrap or discovery bin
parent a1b02adf
No related branches found
No related tags found
No related merge requests found
......@@ -424,7 +424,7 @@ services:
class: Drupal\Core\Path\AliasWhitelist
tags:
- { name: needs_destruction }
arguments: [path_alias_whitelist, '@cache.default', '@lock', '@state', '@path.alias_storage']
arguments: [path_alias_whitelist, '@cache.bootstrap', '@lock', '@state', '@path.alias_storage']
path.alias_manager:
class: Drupal\Core\Path\AliasManager
arguments: ['@path.alias_storage', '@path.alias_whitelist', '@language_manager', '@cache.data']
......@@ -1430,7 +1430,7 @@ services:
arguments: ['@current_user', '@session_handler.write_safe']
user_permissions_hash_generator:
class: Drupal\Core\Session\PermissionsHashGenerator
arguments: ['@private_key', '@cache.default', '@cache.static']
arguments: ['@private_key', '@cache.bootstrap', '@cache.static']
current_user:
class: Drupal\Core\Session\AccountProxy
session_configuration:
......
......@@ -20,7 +20,7 @@ services:
plugin.manager.config_translation.mapper:
class: Drupal\config_translation\ConfigMapperManager
arguments:
- '@cache.default'
- '@cache.discovery'
- '@language_manager'
- '@module_handler'
- '@config.typed'
......
......@@ -43,7 +43,7 @@ function testPathCache() {
$this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
// Check the path alias whitelist cache.
$whitelist = \Drupal::cache()->get('path_alias_whitelist');
$whitelist = \Drupal::cache('bootstrap')->get('path_alias_whitelist');
$this->assertTrue($whitelist->data['node']);
$this->assertFalse($whitelist->data['admin']);
......
......@@ -123,7 +123,6 @@ protected function setUp() {
'cache_bootstrap',
'cache_config',
'cache_data',
'cache_default',
'cache_discovery',
'cache_entity',
'file_managed',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment