From 89c8f1440c02fb6f99bdd88b2c5b6dd7d10471ea Mon Sep 17 00:00:00 2001 From: Ulrich Block <ulrichblock@users.noreply.github.com> Date: Sun, 8 Sep 2013 13:17:43 +0200 Subject: [PATCH] Update index-wp-redis.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Preview does not work at all. Shoudln´t be cached in first place as frequent editing is the normal usecase. --- index-wp-redis.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index-wp-redis.php b/index-wp-redis.php index 46e4d9c..290d7cb 100644 --- a/index-wp-redis.php +++ b/index-wp-redis.php @@ -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 // require('./wp-blog-header.php'); @@ -92,4 +94,4 @@ function getMicroTime($t) -?> \ No newline at end of file +?> -- GitLab