Skip to content

Commit

Permalink
Github merge: #161 and also don't cache PUT and DELETE requests (caug…
Browse files Browse the repository at this point in the history
…ht earlier than before)

git-svn-id: http://plugins.svn.wordpress.org/wp-super-cache/trunk@1588289 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
donncha committed Feb 3, 2017
1 parent 5b8a617 commit 50dc980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-cache-phase1.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@

do_cacheaction( 'cache_init' );

if (!$cache_enabled || $_SERVER["REQUEST_METHOD"] == 'POST')
if ( ! $cache_enabled || in_array( $_SERVER["REQUEST_METHOD"], array( 'POST', 'PUT', 'DELETE' ) ) || isset( $_GET['customize_changeset_uuid'] ) ) {
return true;
}

$file_expired = false;
$cache_filename = '';
Expand Down

0 comments on commit 50dc980

Please sign in to comment.