Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This was added in #2228093: Modernize theme initialization but:
State is used instead of cache to not rebuild the theme domain object all the time. (as in HEAD)
Doesn't really justify using state.
Proposed resolution
Move this to cache - it could probably be in cache.bootstrap or cache.discovery which would mean we get to use chained fast backend for it.
Will remove a database query per page on warm caches.
Comments
Comment #1
star-szrSeems related to this issue.
Comment #2
dawehnerIts a duplicate. Thank you for pointing it out!