wp_prime_network_option_caches
wp_prime_network_option_caches ( $network_id, $options )
Parameters:- (int) network_id ID of the network. Can be null to default to the current network ID.
- (string[]) options An array of option names to be loaded.
Defined at: - Introduced in WordPress: 6.6.0
- Deprecated in WordPress: —
Description
Primes specific network options 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().