Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295747

StorageComparer should not wrap sourceStorage with a memory cache if it extends \Drupal\Core\Config\FileStorage

$
0
0

Problem/Motivation

Whilst working on YAML file parsing caching I noticed that \Drupal\Core\Config\FileStorage use FileCache. This means that the MemoryStorage wrap in \Drupal\Core\Config\StorageComparer::__construct() is pointless.

Steps to reproduce

Import config.

Proposed resolution

Check if $source_storage is a FileStorage before wrapping.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295747


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>