[wp-trac] [WordPress Trac] #58196: Improve performance of `_get_block_templates_paths`

WordPress Trac noreply at wordpress.org
Wed Apr 26 13:37:02 UTC 2023


#58196: Improve performance of `_get_block_templates_paths`
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  5.9
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 The `_get_block_templates_paths` function, is extremely expensive to run
 from a performance standard. Some profiles, mark it as much as 8% of the
 page load of a block theme page request. This is because of the recursive
 directory lookup.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58196>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list