all repos — wp-ffpc @ 7b2d91b0256dbd261557389919e36d17d3296925

instant 404 for 404 pages
Peter Molnar peter.molnar2@booking.com
Thu, 07 Nov 2013 09:27:47 +0000
commit

7b2d91b0256dbd261557389919e36d17d3296925

parent

bdbf99255ac7854fe599ef46fdc054eb4a3be29c

1 files changed, 7 insertions(+), 2 deletions(-)

jump to
M wp-ffpc-acache.phpwp-ffpc-acache.php

@@ -253,8 +253,13 @@ return $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 @@ return $buffer;

} /*** END GENERATING CACHE ENTRY ***/ -?>+?>