instant 404 for 404 pages
This commit is contained in:
parent
bdbf99255a
commit
7b2d91b025
1 changed files with 7 additions and 2 deletions
|
@ -253,8 +253,13 @@ function wp_ffpc_callback( $buffer ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_404() )
|
if ( is_404() ) {
|
||||||
$meta['status'] = 404;
|
$meta['status'] = 404;
|
||||||
|
header("HTTP/1.1 404 Not Found");
|
||||||
|
flush();
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* redirect page */
|
/* redirect page */
|
||||||
if ( $wp_ffpc_redirect != null)
|
if ( $wp_ffpc_redirect != null)
|
||||||
|
@ -312,4 +317,4 @@ function wp_ffpc_callback( $buffer ) {
|
||||||
}
|
}
|
||||||
/*** END GENERATING CACHE ENTRY ***/
|
/*** END GENERATING CACHE ENTRY ***/
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue