[wp-trac] [WordPress Trac] #57886: get_post_templates includes results of get_block_templates while caching (WP_Theme)

WordPress Trac noreply at wordpress.org
Thu Mar 9 08:54:15 UTC 2023


#57886: get_post_templates includes results of get_block_templates while caching
(WP_Theme)
--------------------------+-------------------------------------
 Reporter:  maniu         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  5.9
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  multisite, performance
--------------------------+-------------------------------------

Comment (by maniu):

 @spacedmonkey considering those recent improvements in `WP_Query` -
 https://make.wordpress.org/core/2022/10/07/improvements-to-wp_query-
 performance-in-6-1/, not caching this data in global `themes` cache group
 (moving it outside of the part that regenerates cache in
 `WP_Theme->get_post_templates`) sounds like good enough solution to me.

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


More information about the wp-trac mailing list