[wp-trac] [WordPress Trac] #57756: Improve performance of get_block_templates function

WordPress Trac noreply at wordpress.org
Fri Feb 17 12:37:56 UTC 2023


#57756: Improve performance of get_block_templates function
-------------------------+-----------------------------
 Reporter:  oandregal    |      Owner:  oandregal
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  5.8
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 The `get_block_templates` function is responsible to find block templates
 that match a given search. The function is provided a query parameter that
 is used to find the relevant user templates (database) and theme templates
 (file directory). The query parameter includes data such the slugs of the
 templates or the areas of the template parts.

 There are some optimizations we can do to improve how this code performs.

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


More information about the wp-trac mailing list