[wp-trac] [WordPress Trac] #57077: Performance issues in `_add_block_template_info`
WordPress Trac
noreply at wordpress.org
Thu Dec 15 22:53:58 UTC 2022
#57077: Performance issues in `_add_block_template_info`
--------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1.2
Component: Themes | Version: 5.9
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
--------------------------+---------------------------
Changes (by spacedmonkey):
* owner: (none) => spacedmonkey
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"54998" 54998]:
{{{
#!CommitTicketReference repository="" revision="54998"
Themes: Improve performance of `_add_block_template_part_area_info` and
`_add_block_template_info` functions.
Improve performance of `_add_block_template_part_area_info` and
`_add_block_template_info` function by passing the `with_supports`
parameter to the `WP_Theme_JSON_Resolver::get_theme_data` method. This
results in hitting an existing cache and in many less calls to get_option.
Props spacedmonkey, flixos90, SergeyBiryukov, peterwilsoncc, desrosj.
Fixes #57077.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57077#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list