WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache()
Method of the class: WP_Super_Cache_Rest_Update_Settings{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->set_wp_cache_object_cache( $value );
- $value(mixed) (required)
- -
WP_Super_Cache_Rest_Update_Settings::set_wp_cache_object_cache() WP Super Cache Rest Update Settings::set wp cache object cache code WPSCache 1.12.4
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 ); }