ConfigFactory static cache is not updated when cache tags are invalidated

Created on 24 June 2019, almost 6 years ago
Updated 10 February 2025, about 2 months ago

The ConfigFactory class has a simple static cache that keeps track of the Config objects that it handles. This static cache does not have awareness of the cacheability metadata of the items it holds. When for example some of its items have their cache tags invalidated these are not removed from the cache, and the ConfigFactory will return stale items.

We can fix this by replacing the simple static cache with a @cache.static memory backend.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

configuration system

Created by

🇧🇬Bulgaria pfrenssen Sofia

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024