Needs review
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Apr 2026 at 18:07 UTC
Updated:
1 May 2026 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
catchYeah this looks completely unnecessary, at least now if not necessarily in 2013 when it was added. Saves a lock acquire + release + cache set + cache get on cold cache requests.
Comment #4
catchThe complete override of the ::updateCache() method also looks unnecessary.
As well as that we can probably get rid of the checks for whether modules are loaded now that OOP hooks is in, but that should probably be its own issue since it's not strictly related here, and speaking to nicxvan it might depend on procedural hooks being unsupported which is a bit further ahead.
Comment #5
catchWas able to remove most of the updateCache override here and simplify the constructor slightly too.
Comment #6
catchComment #7
nicxvan commentedI think that has to wait for that last bit and since all of core has been converted we would need contrib to confirm real world scenarios.
This issue looks like a nice clean up, did you find it looking through the queries in the performance tests?
Comment #8
catchI did
dump($this->getCacheOperations())on the node cold cache performance test - had a quick look for anything appearing more than once or similar things that could possibly be multiple loaded. The runtime cache entry was being got least three times and set twice.#3587565: Static cache entities that aren't loaded and #3587601: Avoid loading date formats in element info from yesterday also came out of that.
As with a lot of things, it gets easier to spot issues like this the more previous issues have been fixed.
Comment #9
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #10
catchRebased.