Skip to content
Snippets Groups Projects
Commit 6cd3eb73 authored by Ulrich Block's avatar Ulrich Block
Browse files

Update index-wp-redis.php

parent c48385e7
Branches
No related tags found
No related merge requests found
......@@ -58,11 +58,7 @@ if (!isset($redisError) && (isset($_GET['refresh']) || $_GET['refresh'] == $secr
// If the cache does not exist lets display the user the normal page without cache, and then fetch a new cache page
} else if ($_SERVER['REMOTE_ADDR'] != $ip_of_your_website && strstr($current_url, 'preview=true') == false) {
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$isPOST = 1;
} else {
$isPOST = 0;
}
$isPOST = ($_SERVER['REQUEST_METHOD'] === 'POST') ? 1 : 0;
$loggedIn = preg_match("/wordpress_logged_in/", var_export($_COOKIE, true));
if ($isPost == 0 && $loggedIn == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment