0

I want to know Whether any cache plugin is installed in the WordPress website or not. At present, I get all active WordPress plugin ( Using get_option('active_plugins')) and check one by one, whether any cache plugins is active or not. I get the plugin name and check for strstr of cache.

But, I think this may not be the correct method. Is there any other method is available ?

Edit: I want to do this for 100s of websites hosted in many servers. It is not for one single website.

  • WPScan can list installed plugins almost always. And there are many scripts around to run WPScan in batch. – Max Yudin Jul 19 '18 at 12:21
0

Cache plugins don’t necessarily all work the same way. You’ll need to find the popular ones and figure out how each one works to see how you can identify if it’s active manually.

If you’re tying to change some behaviour in your theme or plugin based on whether the site is cached, my advice would be: don’t try and be clever about it, just give the user the option to control the behaviour themselves.

| improve this answer | |
0

This is the only method. It's all manual.

This is the way Jetpack checks for popular SEO plugins or Yoast SEO checks for other plugins and offers an import option.

There is another way, but it involves more research. Check the options table for certain options. You should have an array of possible options or plugins which you should maintain every 3 (or 6) months.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.