I love WP Super Cache and it has greatly speeded up my sites.
However, it’s also made my WP upgrade process more complicated. Some of my sites run in PHP Safe Mode (not my choice!) and that means that in order to deactivate and reactivate the plugin I have to go through the following steps by hand:
- remove “WP_CACHE” from wp-config.php
- delete wp-content/advanced-cache.php and wp-content/wp-cache-config.php
- deactivate plugin
- [upgrade WordPress]
- re-add “WP_CACHE” to wp-config.php
- temporarily chmod wp-content 777 so plugin can re-create wp-content/advanced-cache.php and wp-content/wp-cache-config.php
- reactivate plugin
- chmod wp-content back to 755
1. I’m trying to understand why WP Super Cache needs to set “WP_CACHE” in wp-config.php and have two PHP files in wp-content. The former I don’t get at all; the latter (it seems to me) could be avoided by storing config info in a non-executable format in the cache directory (assuming you’re trying to avoid all database calls). What am I missing?
2. Is there a way for me to deactivate and reactivate WP Super Cache in a PHP Safe Mode environment without going through all the manual steps above?
3. A possible solution: I gather that some plugins can be deactivated and reactivated simply by moving them out of the way and then back into place. Is that safe for WP Super Cache?
Thanks for your advice.
- The topic ‘Efficient deactivation and reactivation of WP Super Cache during upgrade’ is closed to new replies.