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

Bug :: Multisite :: Cache Wipe #541

Closed
jaswrks opened this issue Aug 5, 2015 · 3 comments
Closed

Bug :: Multisite :: Cache Wipe #541

jaswrks opened this issue Aug 5, 2015 · 3 comments
Assignees
Milestone

Comments

@jaswrks
Copy link

jaswrks commented Aug 5, 2015

Overview

Wiping the cache on a multisite network results in the very next page view being cached incorrectly, because the zencache/cache/zc-blog-paths file is wiped also, and it's not rebuilt until after the next page view, and after the AdvancedCache class caches for the first time.

In that first page view (under the right conditions), this results in an invalid cache path being generated by buildCachePath(); i.e., it thinks the path is merely a sub-directory for the main blog instead of identifying it as a child blog token.

Bug exists in the updated branch we are working on for the next release only: wpsharks/comet-cache-pro#125, following improvements in the way cache paths are generated.

Steps to Reproduce

  • Setup MS network with sub-directory installation.
  • Setup two child blogs: child1 and child2.
  • Wipe the cache.
  • Without doing anything else, visit the front page of child1 or child2.
  • Check your zencache/cache directory.

Expected Behavior

That the child blog path is interpreted correctly.

Observed Behavior

The child blog is nested into the main site's directory incorrectly.

@jaswrks jaswrks added the bug label Aug 5, 2015
jaswrks pushed a commit to wpsharks/comet-cache-pro that referenced this issue Aug 5, 2015
@jaswrks
Copy link
Author

jaswrks commented Aug 5, 2015

Wiping the cache now leaves behind the following files intentionally:

  • /zencache/cache/.htaccess
  • /zencache/cache/zc-advanced-cache
  • /zencache/cache/zc-blog-paths (MS network only)
  • /zencache/cache/zc-auto-cache.log (pro version only)
  • /zencache/cache/zc-auto-cache-archived-[DATE].log (pro version only)
  • ... anything else that is a regular file in the root of the zencache/cache directory.

@jaswrks jaswrks added this to the Next Release (Pro) milestone Aug 6, 2015
@jaswrks jaswrks self-assigned this Aug 6, 2015
@raamdev raamdev added the DMOZL label Aug 12, 2015
@raamdev
Copy link
Contributor

raamdev commented Aug 12, 2015

Next Pro Release Changelog:

  • Multisite Bug Fix: Fixed a bug where Wiping the cache on a multisite network resulted in the very next page view being cached incorrectly. Props @jaswsinc. See Issue #541.

@raamdev raamdev closed this as completed Aug 12, 2015
@raamdev
Copy link
Contributor

raamdev commented Aug 21, 2015

ZenCache Pro v150821 has been released and includes changes from this GitHub Issue.

See the ZenCache Pro v150821 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#541).

@wpsharks wpsharks locked and limited conversation to collaborators Aug 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants