Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jul 2026 at 08:11 UTC
Updated:
23 Aug 2026 at 10:11 UTC
Jump to comment: Most recent
Drupal includes some files in the autoload classmap section of core/composer.json that we know are loaded on every request - this avoids having to locate the files and cache them in APCu.
We haven't updated this list for a while, and it definitely doesn't include Symfony runtime and related files recently added which are some of the first classes to be loaded during any bootstrap.
On a page cache hit, see which files go via the classloader findFile method and add them to the classmap.
Comments
Comment #2
berdirI automated this in a CI step for the php preload feature.
Using this patch:
(the excludes are from opentelemetry, had errors from those, so excluding)
And then CI steps include warming the cache, then adding a new preload.php, applying the patch and adding those files to the preload list (dynamic page cache hit in my case).
This could possibly be adjusted for core.