wpsc_catch_http_status_code()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Code of wpsc_catch_http_status_code() WPSCache 1.8

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