Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2026 at 12:43 UTC
Updated:
17 Jul 2026 at 12:43 UTC
Jump to comment: Most recent
Following #3047289: Standardize how we implement in-memory caches we have a standard pattern for in-memory caches in core, however most core code doesn't use the pattern because it was written before it was introduced.
Where we're using class properties purely as a 'static cache' we should instead inject a memory cache and use that instead.
This will help with #2218651: [meta] Make Drupal compatible with persistent app servers like ReactPHP, PHP-PM, PHPFastCGI, FrankenPHP, Swoole because it creates a centralised way to reset in-memory caches. It also means we'll be able to remove various one-off ::reset() method and some test workarounds.
Will need to be done in multiple issues.
Comments