[wp-trac] [WordPress Trac] #59596: Cache file sizes of core block style files.
WordPress Trac
noreply at wordpress.org
Wed Oct 11 12:15:44 UTC 2023
#59596: Cache file sizes of core block style files.
--------------------------+----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version: 6.3
Severity: normal | Keywords:
Focuses: performance |
--------------------------+----------------------------
Introduced in #58528 / [56044], there is now cache for file lookups for
core block styles. This was to save file lookups and improve server
response time. However, when styles are processed in
`wp_maybe_inline_styles` a file lookup is done using `wp_filesize` to get
the file size and if the file exists. These lookup can be expensive. As
there is already an existing transient cache, reuse that to also cache the
file size of the files.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59596>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list