wpsc_catch_http_status_code()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

wpsc_catch_http_status_code( $status );
$status (required)
-

wpsc_catch_http_status_code() code WPSCache 1.12.0

function wpsc_catch_http_status_code( $status ) {
	global $wp_super_cache_query;

	if ( in_array( intval( $status ), array( 301, 302, 303, 307 ) ) ) {
		$wp_super_cache_query['is_redirect'] = 1;
	} elseif ( $status == 304 ) {
		$wp_super_cache_query['is_304'] = 1;
	} elseif ( $status == 404 ) {
		$wp_super_cache_query['is_404'] = 1;
	}

	return $status;
}