-
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
Existing advanced-cache.php doesn't get replaced when reactivating ZenCache plugin #507
Comments
Ah, tricky tricky. Good catch! |
I was unable to reproduce this, and I just checked the source code to confirm this should not happen. After disabling WP Super Cache and then re-enabling ZenCache, I inspected the However, I have noticed a similar issue myself in the past when testing, and I think what you might be experiencing is an OPCache issue? The What you should find is that Relevant OPCache config. options:
Suggested Configuration for Production
opcache.validate_timestamps = yes
opcache.revalidate_freq = 300 ; or higher Note that this issue should not occur with PHP OPCache now that ZenCache is configured, by default, to automatically clear the OPCache whenever a wipe and/or reactivation takes place. That was part of the work in this PR: wpsharks/comet-cache-pro#127 The issue can occur however, if you are running APC with a configuration that would open you up to this sort of confusion. APC has similar config. options, and stat checks can be turned on to avoid this. Referencing: http://php.net/manual/en/apc.configuration.php#ini.apc.stat |
@jaswsinc I seem to recall manually inspecting the |
I see. Well, maybe it's an issue that existed in a previous release and I just didn't test it at the same time as you did. I tested earlier today against the development branch. |
I re-tested this with the latest versions of ZenCache Lite and ZenCache Pro and was not able to reproduce the issue I described above. Closing this. |
Steps to reproduce this bug
Expected behavior
ZenCache should now be active and caching pages.
Observed behavior
WP Super Cache cache files are still being served, because
wp-content/advanced-cache.php
was never replaced by ZenCache with its own version.If you Disable and then Enable caching in ZenCache, the
advanced-cache.php
file gets updated properly.Note that this scenario specifically depends on ZenCache caching be enabled when you first deactivate the plugin, because when you reactivate ZenCache (after activating, enabling, and then deactivating WP Super Cache), ZenCache is activated with caching enabled (the previous setting). As a result, the routine that installs
advanced-cache.php
never runs.The text was updated successfully, but these errors were encountered: