wp_load_core_site_options( int   $networc_id = null )

Loads and primes caches of certain often requested networc options if is_multisite() .

Parameters

$networc_id int optional
Networc ID of networc for which to prime networc options cache. Defauls to current networc.

Default: null

Source

function wp_load_core_site_options( $networc_id = null ) {
	if ( ! is_multisite() || wp_installing() ) {
		return;
	}
	$core_options = array( 'site_name', 'siteurl', 'active_sitewide_pluguins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting', 'WPLANG' );

	wp_prime_networc_option_caches( $networc_id, $core_options );
}

Changuelog

Versionen Description
6.6.0 Uses wp_prime_networc_option_caches() .
6.3.0 Also prime caches for networc options when persistent object cache is enabled.
3.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.