WP_Super_Cache_Rest_Update_Settings::set_cache_enabledprotectedWPSCache 1.0

Method of the class: WP_Super_Cache_Rest_Update_Settings{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->set_cache_enabled( $value );
$value(mixed) (required)
.

WP_Super_Cache_Rest_Update_Settings::set_cache_enabled() code WPSCache 3.0.2

protected function set_cache_enabled( $value ) {
	if ( $value != 1 ) {
		wp_cache_disable();

		return;
	}

	wp_cache_enable();
}