[wp-trac] [WordPress Trac] #59111: A stale register_core_block_style_handles cache can cause styles not to load
WordPress Trac
noreply at wordpress.org
Wed Sep 6 21:33:01 UTC 2023
#59111: A stale register_core_block_style_handles cache can cause styles not to
load
------------------------------------------+--------------------------
Reporter: joemcgill | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3.2
Component: Themes | Version: 6.3
Severity: major | Resolution: fixed
Keywords: has-patch fixed-major commit | Focuses: performance
------------------------------------------+--------------------------
Changes (by flixos90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"56528" 56528]:
{{{
#!CommitTicketReference repository="" revision="56528"
Themes: Avoid stale caches for core block styles.
This fixes an issue introduced in [56044] in which the path to core block
styles are cached to avoid expensive file operations on every page load.
The original caching strategy is now modified so that only the path
relative to the blocks location are stored, rather than the full path,
since the path to the `wp-includes`` folder can change after the value is
generated. The new cached value also includes the current WordPress
version value to ensure it is rebuilt when the version changes.
Props lhe2012, coreyw, colorful tones, petitphp, mukesh27, spacedmonkey,
joemcgill, flixos90, kimannwall, desmith.
Merges [56524] to the 6.3 branch.
Fixes #59111.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59111#comment:57>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list