wpsc_is_caching_user_disabled()
Check if caching is disabled for the current visitor based on their cookies
No Hooks.
Return
null
. Nothing (null).
Usage
wpsc_is_caching_user_disabled();
wpsc_is_caching_user_disabled() wpsc is caching user disabled code WPSCache 1.12.4
function wpsc_is_caching_user_disabled() { global $wp_cache_not_logged_in; if ( $wp_cache_not_logged_in == 2 && wpsc_get_auth_cookies() ) { wp_cache_debug( 'wpsc_is_caching_user_disabled: true because logged in' ); return true; } elseif ( $wp_cache_not_logged_in == 1 && ! empty( $_COOKIE ) ) { wp_cache_debug( 'wpsc_is_caching_user_disabled: true because cookie found' ); return true; } else { wp_cache_debug( 'wpsc_is_caching_user_disabled: false' ); return false; } }