Problem/Motivation

Config schema use FileCache due to:

  • \Drupal\Core\Config\Schema\ConfigSchemaDiscovery uses config.storage.schema which is \Drupal\Core\Config\ExtensionInstallStorage
  • \Drupal\Core\Config\ExtensionInstallStorage extends \Drupal\Core\Config\InstallStorage which extends \Drupal\Core\Config\FileStorage
  • \Drupal\Core\Config\FileStorage has been using FileCache since #2473179: Use FileCache for config storage

However the file cache in FileStorage is a memory only cache. We could use an APCu FileCache for config schema to speed up testing (a tiny amount) because schema files do not change much and are used when writing config.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3421483

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

wim leers’s picture

Thanks for opening this issue!

speed up testing (a tiny amount)

Let's mark this Minor?

andypost’s picture

I bet this caching still makes sense, how to measure it? at least, it brings parity comparing to absence of pecl yaml

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.