wp_prime_site_option_caches()WP 6.6.0

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().

No Hooks.

Returns

null. Nothing (null).

Usage

wp_prime_site_option_caches( $options );
$options(string[]) (required)
An array of option names to be loaded.

Notes

Changelog

Since 6.6.0 Introduced.

wp_prime_site_option_caches() code WP 6.8.1

function wp_prime_site_option_caches( array $options ) {
	wp_prime_network_option_caches( null, $options );
}