WP_Super_Cache_Rest_Update_Settings::set_cache_enabled() protected WPSCache 1.0
{} It's a method of the class: WP_Super_Cache_Rest_Update_Settings{}
No Hooks.
Return
Null. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->set_cache_enabled( $value );
- $value(mixed) (required)
Code of WP_Super_Cache_Rest_Update_Settings::set_cache_enabled() WP Super Cache Rest Update Settings::set cache enabled WPSCache 1.7.1
protected function set_cache_enabled( $value ) {
if ( $value != 1 ) {
wp_cache_disable();
return;
}
wp_cache_enable();
}