cPFence Circling back to this uninstall/caching thing...
The code you provided was helpful for identifying sites with/out caching, but has a couple problems:
- No way to determine wether caching is activated, although most plugins should remove the directives from .htaccess (but IDK for sure.) If the plugin is installed but not activated and does have a hit in the .htaccess it'll still leave caching disabled so won't be optimized for CPU load reduction.
- When I re-generate the WP site list, the targeted WP sites generated with the supplied code are still larger than I would expect. Working to debug the code to identify the problem...
I'm basically now of the opinion that we'll have to remove all caching plugins even if paid, and enforce LiteSpeed Cache. Now the problem is a bit ridiculous, because. you guys have made it really simple to automate these things, however...
cpfence --bulk-uninstall-wp-plugin wp-super-cache
cpfence --bulk-uninstall-wp-plugin wp-rocket
cpfence --bulk-uninstall-wp-plugin breeze
cpfence --bulk-uninstall-wp-plugin w3-total-cache
cpfence --bulk-uninstall-wp-plugin cache-enabler
cpfence --bulk-uninstall-wp-plugin comet-cache
cpfence --bulk-uninstall-wp-plugin hummingbird-cache
cpfence --bulk-uninstall-wp-plugin swift-performance
cpfence --bulk-uninstall-wp-plugin autoptimize
cpfence --bulk-uninstall-wp-plugin hyper-cache
cpfence --bulk-uninstall-wp-plugin wp-fastest-cache
cpfence --bulk-uninstall-wp-plugin powered-cache
cpfence --bulk-uninstall-wp-plugin cachify
cpfence --bulk-uninstall-wp-plugin simple-cache
cpfence --bulk-uninstall-wp-plugin advanced-cache
cpfence --bulk-uninstall-wp-plugin speedycache
cpfence --bulk-uninstall-wp-plugin speedycache-pro
cpfence --bulk-uninstall-wp-plugin aruba-hispeed-cache
cpfence --bulk-uninstall-wp-plugin docket-cache
cpfence --bulk-uninstall-wp-plugin rapid-cache
cpfence --bulk-uninstall-wp-plugin redis-cache
cpfence --bulk-uninstall-wp-plugin sg-cachepress
cpfence --bulk-uninstall-wp-plugin sqlite-object-cache
cpfence --bulk-uninstall-wp-plugin wp-cloudflare-page-cache
This is a list of plugins generated by searching for "cache". I'm sure many of our members aren't using many of these, but we need to be as comprehensive as possible, but this process take so long having to answer "yes" twice for each pass! Would be so much better if we can:
- Pass multiple plugins on one line (Vital!)
- Enable -yes for use in cronjobs (Optional but would be nice.)