Skip to content

Commit

Permalink
Fix bug with missing WP_CACHE related to Quick Cache migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Mar 23, 2015
1 parent de2838c commit 4c0c3e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zencache-pro/zencache-pro.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2773,9 +2773,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();
}
}

/**
Expand Down

0 comments on commit 4c0c3e3

Please sign in to comment.