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

Update index-wp-redis.php

Preview does not work at all.

Shoudln´t be cached in first place as frequent editing is the normal usecase.
parent 8257b641
Branches
No related tags found
No related merge requests found
...@@ -69,6 +69,8 @@ if (isset($_GET['refresh']) || $_GET['refresh'] == $secret_string || ($_SERVER[' ...@@ -69,6 +69,8 @@ if (isset($_GET['refresh']) || $_GET['refresh'] == $secret_string || ($_SERVER['
} else if ($_SERVER['REMOTE_ADDR'] != $ip_of_your_website && strstr($current_url, 'preview=true') == true) {
require('./wp-blog-header.php');
} }
// else { // This is what your server should get if no cache exists //depricated, as the ob_start() is cleaner // else { // This is what your server should get if no cache exists //depricated, as the ob_start() is cleaner
// require('./wp-blog-header.php'); // require('./wp-blog-header.php');
...@@ -92,4 +94,4 @@ function getMicroTime($t) ...@@ -92,4 +94,4 @@ function getMicroTime($t)
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment