[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 22:54:30 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 dev-reviewed                              |  performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"57013" 57013]:
 {{{
 #!CommitTicketReference repository="" revision="57013"
 Options, Meta APIs: Rename option cache priming functions.

 Rename the option cache priming functions to more closely follow the
 naming convention used by other cache priming functions.

 * `wp_load_options()` becomes `wp_prime_option_caches()`
 * `wp_load_options_by_group()` becomes `wp_prime_option_caches_by_group()`

 The unit test files and classes are renamed accordingly.

 Unlike the existing cache priming functions, these functions were
 introduced with the intention of being public so use the `wp_` prefix
 rather than the `_` prefix used by the functions initially introduced as
 private functions but since made public.

 Follow up to [56445],[56990].

 Props flixos90, peterwilsoncc, joemcgill, SergeyBiryukov, desrosj.
 Fixes #58962.
 }}}

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


More information about the wp-trac mailing list