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
Clear Cache button doesn't clear Child-Site Logged-In User Home Page cache on WordPress Multisite #409
Comments
Hi raamdev, I'm having a problem where the home page cache files are not being cleared for non-logged in users as well, whether it's when using the site Clear Cache button, or the automatic Home Page update when editing a post. I reported this to WebSharks, and they suggested commenting about it here. Thanks! |
@tomlinsongu Are you using WordPress Multisite? Are you seeing this when trying to clear the Child Site cache? |
Yes, I'm using WordPress Multisite, and when I clear the Child Site cache, the home page cache files are not cleared. Also, when I update a post, the home page cache file for that child site is not updated (sometimes I'll get a message saying it is, and sometimes I won't, but it is never updated). |
@tomlinsongu Thank you for the additional information. I have updated this GitHub Issue to include note of the home page cache not clearing for non-logged in users. |
Thank you! Let me know if you need to see an example of it in action. |
@tomlinsongu One thing that would help is if you can test the beta when it's released. If you're interested in testing a beta release of Quick Cache before the next version comes out, please sign-up to be a beta tester here. |
This bug needs to be retested against the latest ZenCache release (v150626), as there were many improvements and fixes related to WordPress Multisite Networks and this issue may already be resolved. |
By my testing, this issue appears to be resolved by the latest ZenCache release. Thank you! |
@tomlinsongu Thank you very much for the update! I'm going to test this myself just to make sure we have two confirmations that the bug does not exist and then I will close this issue. |
Copying comments from @jaswsinc in #536 here so that we can close the other duplicate issue. @jaswsinc writes...
|
Added to original issue body: ↑ [Update 2015-08-05]: I received another report of the regular Home Page cache (NOT Logged-In User Home Page cache) not clearing on a Child Site: https://websharks.zendesk.com/agent/tickets/7711 |
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 (#409). |
Steps to recreate this bug
Network Activate Quick Cache Pro (tested with v150129) in a WPMU environment (tested with WPMU using sub-directories) with at least one Child Site
Enable Logged-In User caching an maintain a separate cache for each user (
Quick Cache ⥱ Plugin Options ⥱ Logged-In Users → Yes, and maintain a separate cache for each user
)Logout of Network Admin and login to the site as a Child Site user to generate some user-specific cache files. Visit at least the Home Page and one other page on the Child Site.
You should now have cache files for the child site inside
wp-content/cache/quick-cache/cache/
that represent something like the following (assuming the Child Site subdirectory is/child1/
):Now return to the Network Admin and visit the Child Site Dashboard (in this example, the Dashboard for
child1
).Click the "Clear Cache" button to clear the cache for the Child Site.
Quick Cache reports that 2 cache files were cleared, as we would expect:
However, if we check the Child Site cache directory to verify that all cache files have been cleared, we find that the user-specific Home Page cache file (
/child1.u/7.html
) remains:It appears that site-specific clearing of all cache files does not properly clear the Home Page cache files for logged-in users.
Note: If we click "Clear Cache" from the Network Admin Dashboard (to clear all cache files for all sites), all cache files are cleared as expected.
Also affecting non-logged in users
@tomlinsongu reports below that this seems to also be affecting non-logged in users. When the Child Site cache is cleared (whether by an automatic routine or by the clear cache button), the Home Page cache for non-logged in users (i.e., the default home page cache file) for that Child Site is not cleared.
I have not confirmed this yes, so that part needs testing.
[Update 2015-08-05]: I received another report of the regular Home Page cache (NOT Logged-In User Home Page cache) not clearing on a Child Site: https://websharks.zendesk.com/agent/tickets/7711
Support threads referencing this issue
The text was updated successfully, but these errors were encountered: