Using the ConfigImporter during installation results in a double memory cache

Created on 11 December 2023, 7 months ago

Problem/Motivation

The \Drupal\Core\Installer\NormalInstallerServiceProvider swaps out database caches for memory caches and the Storage comparer wraps the active config in a memory cache. So when install from config the StorageComparer target storages have double memory caches which is wasteful.

Steps to reproduce

  1. Install standard
  2. rename standard_install to _standard_install
  3. run drush config-export
  4. run drush si --existing-config

Proposed resolution

MAYBE make \Drupal\Core\Config\CachedStorage::$cache public or have a getter... and then in StorageComparer check if a CachedStorage and if the cache is a memory cache.
OR add a boolean to \Drupal\Core\Config\StorageComparer::__construct() that determines if the target storage should be wrapped.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated about 16 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024