Statically cache the results of SchedulerManager::getPlugins

Created on 31 July 2025, 16 days ago

Problem/Motivation

I noticed \Drupal\scheduler\SchedulerManager::getPlugins was called 11 times on /admin/content due to form alter checks. Each check gets the same data from the cache and is unchanged. This leads to extra hits to the cache that aren't needed for unchanged data

Steps to reproduce

Proposed resolution

1. We can statically cache the data in the method ie `static $plugins`
2. Use a chained backend to leverage MemoryCache and backend cache

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

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

Comments & Activities

Production build 0.71.5 2024