Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes websharks/zencache#450 #451

Merged
merged 1 commit into from
Mar 23, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion zencache/zencache.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

/**
Expand Down