WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache()protectedWPSCache 1.0

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

Хуков нет.

Возвращает

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

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->set_wp_cache_object_cache( $value );
$value(разное) (обязательный)
-

Код WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache() WPSCache 1.12.0

protected function set_wp_cache_object_cache( $value ) {
	global $_wp_using_ext_object_cache, $wp_cache_object_cache, $cache_path;

	if ( ! $_wp_using_ext_object_cache ) {
		return;
	}

	if ( $value == 0 ) {
		if ( function_exists( 'prune_super_cache' ) ) {
			prune_super_cache( $cache_path, true );
		}

		$wp_cache_object_cache = 1;

	} else {
		$wp_cache_object_cache = 0;
	}

	wp_cache_setting( 'wp_cache_object_cache', $wp_cache_object_cache );
}