-
Notifications
You must be signed in to change notification settings - Fork 17
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 :: Sub-Directory Install :: Cache Clearing #540
Comments
Noting that the HTML Compressor cache is immune to this. It only impacts ZenCache itself. Files cached by the HTML Compressor are stored in nested directories that work around this issue. |
This also has the potential to cause performance issues whenever the cached is cleared from the main site in a sub-directory network. ALL of the child blogs are being scanned, instead of just the main site. |
@jaswsinc Thanks for the detailed bug report! My feeling is that the priority for this bug can slip to the following release; I see this as confusing and potentially harmful (for performance reasons), but nothing catastrophic. If you've already started working on this and you feel it's a relatively easy fix, I certainly wouldn't mind getting it into the next release, but if not I wanted to share my thoughts on priority. :-) |
Changes to Branched Cache StructureLegend: [URL] = [cache path]
If the installation is in a sub-directory:
SummaryIf there is a multisite base directory and/or child sub-directory, that collective path becomes a suffix of the host fragment used in cache path generation. This way each child blog has a host-based root--which makes clearing the cache much more logical and it improves performance considerably in a MS network that runs from a sub-directory base and/or uses a sub-directory structure for child blogs. In addition, each multisite base directory and/or child sub-directory gets it's own |
Another example of the new behavior:
|
From the main site:
|
Next Pro Release Changelog:
|
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 (#540). |
Overview
Clearing the cache from the main site when there are child blogs in sub-directories, results in all child blogs being cleared from the cache, not just the main site as would be expected. In short, this results in what is essentially a full wipe of the cache, when in fact I just want to clear the cache for the main site.
Steps to Reproduce
example.com/child1
andexample.com/child2
example.com/
example.com/child1
andexample.com/child2
Expected Behavior
That only the cache for the main site would be cleared.
Observed Behavior
All child blog sub-directories are cleared as well. It's a full wipe when it should just clear the main site. This happens due to the fact that child blogs are stored in sub-directories; i.e., they are not associated with their own host.
The text was updated successfully, but these errors were encountered: