From a189799454fd42096562c66c2005bb22adf5c06f Mon Sep 17 00:00:00 2001 From: Raam Dev Date: Mon, 23 Mar 2015 17:21:34 -0400 Subject: [PATCH] Fix bug with missing WP_CACHE related to Quick Cache migration. See websharks/zencache#450 --- zencache/zencache.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zencache/zencache.inc.php b/zencache/zencache.inc.php index 734764e..03cd965 100644 --- a/zencache/zencache.inc.php +++ b/zencache/zencache.inc.php @@ -2056,9 +2056,15 @@ public function check_advanced_cache() // Fixes zero-byte advanced-cache.php bug related to migrating from Quick Cache // See https://github.com/websharks/zencache/issues/432 + // Also fixes a missing define('WP_CACHE', TRUE) bug related to migrating from Quick Cache + // See https://github.com/websharks/zencache/issues/450 if(!is_file($cache_dir.'/zc-advanced-cache') || !is_file($advanced_cache_file) || filesize($advanced_cache_file) === 0 - ) $this->add_advanced_cache(); + ) + { + $this->add_advanced_cache(); + $this->add_wp_cache_to_wp_config(); + } } /**