Primes specific network options for the current network into the cache with a single database query.
Only network options that do not already exist in cache will be loaded.
If site is not multisite, then call wp_prime_option_caches() .
$optionsstring[]required
function wp_prime_site_option_caches( array $options ) {
wp_prime_network_option_caches( null, $options );
}
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_prime_site_option_caches