WP_Super_Cache_Rest_Get_Status::add_preload_status() protected WPSCache 1.0
{} It's a method of the class: WP_Super_Cache_Rest_Get_Status{}
No Hooks.
Return
Null. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->add_preload_status( $status );
- $status(array) (required) (passed by reference — &)
Code of WP_Super_Cache_Rest_Get_Status::add_preload_status() WP Super Cache Rest Get Status::add preload status WPSCache 1.7.1
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;
}
}