[wp-trac] [WordPress Trac] #56913: Prime network options in a single cache call using wp_cache_get_multiple (was: Improve autoloaded network options)

WordPress Trac noreply at wordpress.org
Thu Jun 22 14:53:47 UTC 2023


#56913: Prime network options in a single cache call using wp_cache_get_multiple
--------------------------------+---------------------------
 Reporter:  spacedmonkey        |       Owner:  spacedmonkey
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  6.3
Component:  Options, Meta APIs  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  performance
--------------------------------+---------------------------
Description changed by spacedmonkey:

Old description:

> When `wp_load_core_site_options` is called, network options are primed in
> a single database query. However there are a number of network options
> that are loaded on every single request. However the a number of options
> that are needed for every request and are not loaded. These include and
> are not limited too.
>
> - fileupload_maxk
> - upload_space_check_disabled
> - upload_filetypes
>
> Related #56912

New description:

 When `wp_load_core_site_options` change the logic to call
 `wp_cache_get_multiple` priming important network options in cache in a
 single cache call.

--

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


More information about the wp-trac mailing list