WP_Super_Cache_Rest_Update_Settings::set_wp_cache_make_known_anon()protectedWPSCache 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_wp_cache_make_known_anon( $value );
$value(mixed) (required)
-

Code of WP_Super_Cache_Rest_Update_Settings::set_wp_cache_make_known_anon() WPSCache 1.8

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 );
}