instant 404 for 404 pages

This commit is contained in:
Peter Molnar 2013-11-07 09:27:47 +00:00
parent bdbf99255a
commit 7b2d91b025

View file

@ -253,8 +253,13 @@ function wp_ffpc_callback( $buffer ) {
}
}
if ( is_404() )
if ( is_404() ) {
$meta['status'] = 404;
header("HTTP/1.1 404 Not Found");
flush();
die();
}
/* redirect page */
if ( $wp_ffpc_redirect != null)
@ -312,4 +317,4 @@ function wp_ffpc_callback( $buffer ) {
}
/*** END GENERATING CACHE ENTRY ***/
?>
?>