WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache() protected WPSCache 1.0
{} Это метод класса: WP_Super_Cache_Rest_Update_Settings{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_wp_cache_object_cache( $value );
- $value(смешанный) (обязательный)
Код WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache() WP Super Cache Rest Update Settings::set wp cache object cache WPSCache 1.7.1
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 );
}