WP_Super_Cache_Rest_Get_Status::add_cache_disabled_status()protectedWPSCache 1.0

Метод класса: WP_Super_Cache_Rest_Get_Status{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->add_cache_disabled_status( $status );
$status(массив) (обязательный) (передается по ссылке — &)
-

Код WP_Super_Cache_Rest_Get_Status::add_cache_disabled_status() WPSCache 1.12.0

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

	if ( ! is_writeable_ACLSafe( $wp_cache_config_file ) ) {
		$status['cache_disabled'] = true;
	}
}