[wp-trac] [WordPress Trac] #61053: Provide a way to load multiple specific network options with a single database / cache request
WordPress Trac
noreply at wordpress.org
Mon Apr 22 16:54:38 UTC 2024
#61053: Provide a way to load multiple specific network options with a single
database / cache request
------------------------------------+----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Options, Meta APIs | Version: 3.0
Severity: normal | Keywords:
Focuses: multisite, performance |
------------------------------------+----------------------------
There is already a way to prime caches for options in a single request, in
the functions `wp_prime_option_caches`. In WordPress multisite context,
there is already `wp_load_core_site_options`, but that function is
designed to run once and is not a developer function. A function should be
added to core to allow developers to prime network options caches with a
single function call. This function should be used inside of
`wp_load_core_site_options`.
Follow on from #58962 [56445],[56990]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61053>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list