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

WordPress Trac noreply at wordpress.org
Thu Oct 26 00:15: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
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @peterwilsoncc I'm glad we could find a consensus. While I am leaning
 towards "load", I think what you're proposing is a reasonable compromise
 I'd be happy with.

 Only one additional note on your PR: In accordance with the existing
 functions, the functions should probably start with
 `wp_prime_option_caches` instead of `wp_prime_options_cache`. :)

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


More information about the wp-trac mailing list