It’s unclear in the docs about the Cloudflare Cache API. I have sites on RunCloud that use Runcloud Hub and also some on xCloud that uses Nginx Helper along with xCloud Cloudflare Edge Cache must use plugin.
Do I need to add the Cloudflare API or will clearing the cache also work with say the Runcloud Hub one as it has built in Cloudflare cache clearing?
Also when I do enable the Cloudflare Cache API in MainWP I get Cloudflare errors for all sites. Some sites use Cloudflare and some don’t. None have the cloudflare official plugin installed as the Cloudflare cache is controlled by the hosts own plugins. All the sites have their DNS hosted via Cloudflare
Here is an error from a site that is on Runcloud and uses Cloudflare caching.
Nginx Helper => Cache auto cleared on: (2025-07-29 16:34:09)
Cloudflare => There was an issue purging the cache. {“code”:6003,“message”:“Invalid request headers”,“error_chain”:[{“code”:6103,“message”:“Invalid format for X-Auth-Key header”}]}-{“code”:7003,“message”:“Could not route to /client/v4/zones/purge_cache, perhaps your object identifier is invalid?”}
If the plugin itself is configured to purge Cloudflare cache, then purging the cache via our Cache Control add-on will also purge the CF cache.
However, it may depend on whether the plugin itself purges it as part of it’s main purge function, or if it requires you to purge CF cache separately.
I couldn’t reproduce this error message, however I don’t have sites on Runcloud so I couldn’t replicate the exact scenario.
Would you mind opening a private Help Desk ticket so we can look into this further?
Please refer to this Community thread by its URL in the ticket.
Thanks for the reply. If I add the Cloudflare API, can the cache plugin determine which websites are proxied and have a cache to be cleared or does it just try to clear every website which results in this error?
Also as a side question does the Regression Testing add-on happen after the cache has been cleared. For example after a plugin gets updated, does the cache get cleared and then the regression testing happen?
Cache Control add-on can determine which sites are proxied and so it should not try to purge the cache of all Child Sites.
In that scenario, Cache Control will first purge the cache and then the Regression Testing add-on will perform it’s tests.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.