Problem/Motivation
When using responsive images, responsive images load image styles multiple times, and also get the image effects multiple times which sorts all of the image effects multiple times etc. The image style config entity itself tries to cache the plugin sorting, but that doesn't work if it's not static cached itself.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot from 2025-12-27 16-52-28.png | 179.66 KB | catch |
| #3 | Screenshot from 2025-12-27 16-52-33.png | 183.46 KB | catch |
Issue fork drupal-3564923
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3564923-static-cache-image
changes, plain diff MR !14176
Comments
Comment #3
catchAdding before/after xhprof screenshots. Saves approximately 13,000 function calls on the Umami front page with a cold cache (out of 1.6 million in total so not a lot in the scheme of things, but not nothing).
Comment #4
catchComment #5
smustgrave commentedSeems straight forward enough.
Comment #7
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 #8
catchRebased.
Comment #9
alexpottNeeds a reroll as there are conflicts.
Comment #10
catchRebased.
Comment #11
catchRe-rebased.
Comment #12
alexpottCommitted and pushed 4b6e60ce088 to main and 2599d739104 to 11.x. Thanks!