[wp-trac] [WordPress Trac] #58230: Disable lazy loading term meta get_block_templates.

WordPress Trac noreply at wordpress.org
Wed May 17 09:21:23 UTC 2023


#58230: Disable lazy loading term meta get_block_templates.
---------------------------------------+---------------------------
 Reporter:  spacedmonkey               |       Owner:  spacedmonkey
     Type:  enhancement                |      Status:  closed
 Priority:  normal                     |   Milestone:  6.3
Component:  Editor                     |     Version:
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch  |     Focuses:  performance
---------------------------------------+---------------------------
Changes (by spacedmonkey):

 * owner:  (none) => spacedmonkey
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55817" 55817]:
 {{{
 #!CommitTicketReference repository="" revision="55817"
 Editor: Disable lazy loading term meta in `get_block_templates`.

 Pass false to the `lazy_load_term_meta` parameter given to the `WP_Query`
 found in `get_block_templates`. Template post types only ever have one
 term assigned to them. So priming term meta, does not help performance as
 lazy loading term meta is only useful if loading multiple terms. As
 `get_block_templates` is run multiple times on a block theme request, this
 saves processing time.

 Props spacedmonkey, andraganescu, ntsekouras, oandregal, westonruter.
 Fixes #58230.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58230#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list