WP_Super_Cache_Rest_Get_Status::add_preload_status()protectedWPSCache 1.0

Method of the class: WP_Super_Cache_Rest_Get_Status{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->add_preload_status( $status );
$status(array) (required) (passed by reference — &)
-

WP_Super_Cache_Rest_Get_Status::add_preload_status() code WPSCache 1.12.0

protected function add_preload_status( & $status ) {
	global $wp_cache_config_file;

	include( $wp_cache_config_file );

	if ( false == $cache_enabled ) {
		$status[ 'preload_disabled_cache_off' ] = true;
	}
	if ( false == $super_cache_enabled ) {
		$status[ 'preload_disabled_supercache_off' ] = true;
	}
	if ( true === defined( 'DISABLESUPERCACHEPRELOADING' ) ) {
		$status[ 'preload_disabled_by_admin' ] = true;
	}
}