Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'allan23-issue/67'
Browse files Browse the repository at this point in the history
  • Loading branch information
skeltoac committed Nov 22, 2016
2 parents 10b350d + ddba956 commit 6c222ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions advanced-cache.php
Expand Up @@ -337,10 +337,8 @@ function add_debug_html_to_output( $debug_html ) {
if ( strstr( $_SERVER['SCRIPT_FILENAME'], 'wp-includes/js' ) )
return;

// Never batcache a POST request.
if ( ! empty( file_get_contents("php://input") ) || ! empty( $_POST ) ||
( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] ) )
{
// Only cache HEAD and GET requests.
if ((isset($_SERVER['REQUEST_METHOD']) && !in_array($_SERVER['REQUEST_METHOD'], array('GET', 'HEAD')))) {
return;
}

Expand Down

0 comments on commit 6c222ff

Please sign in to comment.