WP_Super_Cache_Rest_Update_Settings::set_wp_cache_make_known_anon()protectedWPSCache 1.0

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_make_known_anon( $value );
$value(mixed) (required)
-

WP_Super_Cache_Rest_Update_Settings::set_wp_cache_make_known_anon() code WPSCache 1.12.0

protected function set_wp_cache_make_known_anon( $value ) {
	global $wp_cache_make_known_anon, $cache_path;

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

		$wp_cache_make_known_anon = 1;

	} else {
		$wp_cache_make_known_anon = 0;
	}

	wp_cache_setting( 'wp_cache_make_known_anon', $wp_cache_make_known_anon );
}