[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 21:27:46 UTC 2023


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56990" 56990]:
 {{{
 #!CommitTicketReference repository="" revision="56990"
 Options, Meta APIs: Rename `prime_options()` to `wp_load_options()`.

 This clearly separates these functions which are intended to be used by
 external developers from the existing `_prime_*_caches()` functions which
 are primarily intended for internal usage. The term "load" is additionally
 more accessible than "prime".

 This changeset renames the above function, as well as the wrapper function
 `prime_options_by_group()` to `wp_load_options_by_group()`.

 Props peterwilsoncc, joemcgill, hellofromTonya, poran766, flixos90.
 Fixes #58962.
 }}}

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


More information about the wp-trac mailing list