[wp-trac] [WordPress Trac] #58962: Provide a way to load multiple specific options with a single database request

WordPress Trac noreply at wordpress.org
Mon Oct 23 23:41:46 UTC 2023


#58962: Provide a way to load multiple specific options with a single database
request
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.4
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-dev-    |     Focuses:
  note dev-reviewed                              |  performance
-------------------------------------------------+-------------------------
Changes (by joemcgill):

 * keywords:  has-patch has-unit-tests has-dev-note dev-feedback => has-
     patch has-unit-tests has-dev-note dev-reviewed


Comment:

 My experience is that many of the current priming functions were
 introduced as internal functions, but (like all WP functions) end up
 getting used by savvy 3rd party developers regardless, since they’re
 useful.

 These new functions were not created with the intent to make something in
 core more performant, but as a helper for extenders to more efficiently
 load a set of options.

 I like the latest commit in trunk and for this purpose and think it would
 be useful for us to consider making more of these types of priming
 functions public and more well documented as best practices.

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


More information about the wp-trac mailing list