WP_Super_Cache_Rest_Update_Settings::set_wp_cache_not_logged_in
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_wp_cache_not_logged_in( $value );
- $value(mixed) (required)
- .
WP_Super_Cache_Rest_Update_Settings::set_wp_cache_not_logged_in() WP Super Cache Rest Update Settings::set wp cache not logged in code WPSCache 3.1.1
protected function set_wp_cache_not_logged_in( $value ) {
global $wp_cache_not_logged_in, $cache_path;
if ( 0 != $value ) {
if ( 0 == $wp_cache_not_logged_in && function_exists( 'prune_super_cache' ) ) {
prune_super_cache( $cache_path, true );
}
$wp_cache_not_logged_in = (int) $value;
} else {
$wp_cache_not_logged_in = 0;
}
wp_cache_setting( 'wp_cache_not_logged_in', $wp_cache_not_logged_in );
}