[wp-trac] [WordPress Trac] #49446: cache the results of get_uploaded_header_images()
WordPress Trac
noreply at wordpress.org
Sun Feb 16 00:12:16 UTC 2020
#49446: cache the results of get_uploaded_header_images()
-----------------------------------------+-----------------------------
Reporter: pbiron | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: normal | Keywords:
Focuses: administration, performance |
-----------------------------------------+-----------------------------
If the current theme supports `custom-header` and
`is_random_header_image()` is true, then `_media_states()` calls
`get_uploaded_header_images()` for **every** row in the media list table.
If the results of `get_uploaded_header_images()` were cached, the media
list table would render much quicker, especially if the number of media
displayed per page is large.
There is already an inline comment `@todo Caching` which has apparently
been there since `get_uploaded_header_images()` was added in [17757].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49446>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list