The plugin integrates with: Cloudflare CDN — Synchronized cache purge via Cloudflare API v4 (per-URL or purge-everything) WP Rocket — Bidirectional sync (MSCache → WP Rocket and WP Rocket → MSCache) FlyingPress — Bidirectional sync W3 Total Cache — Sync purge (MSCache → W3TC) Autoptimize — CSS/JS cache clear on full Varnish purge Redis / Memcached Object Cache — Optional flush on full purge WooCommerce — Dedicated integration with stock, sales, reviews, coupons, attributes, orders, and auto-exclusion of dynamic pages Each integration is detailed below. Cloudflare CDN Integration Many websites use Cloudflare as a CDN and security layer in front of their origin server. When Varnish is purged, the content at the origin is fresh — but Cloudflare edge nodes around the world may still serve stale cached copies to visitors for hours or days. The plugin solves this by optionally sending purge requests to the Cloudflare API v4 every time Varnish is purged. Configuration requires a Cloudflare API Token (with "Zone.Cache Purge" permission) and the Zone ID of your domain, both available from the Cloudflare dashboard. Three purge modes are available: Per-URL — Each individual URL purged from Varnish is also purged from Cloudflare. Precise but generates more API calls. Cloudflare free plan allows 1,000 purge API calls per day. Purge Everything — Any Varnish purge event triggers a full Cloudflare cache purge. Simple but clears the entire CDN cache including static assets (CSS, JS, images). Per-URL + full purge fallback (recommended) — Individual page purges are sent per-URL to Cloudflare. Full Varnish purge events trigger a Cloudflare "purge everything". This mode balances per-URL precision with simplicity. A Test Connection button in the Cloudflare tab verifies that the API Token and Zone ID are valid and shows the zone name and status. WP Rocket Integration WP Rocket is one of the most popular WordPress performance plugins, providing page caching, file optimization, and lazy loading. When both MSCache and WP Rocket are active, two separate caching layers exist: Varnish (server-level) and WP Rocket (application-level). If only one is purged, visitors may see inconsistent content. The integration provides bidirectional synchronization: MSCache → WP Rocket — When MSCache purges a URL from Varnish, it also calls rocket_clean_post() to clear that page from WP Rocket's local page cache. On a full Varnish purge, rocket_clean_domain() clears the entire WP Rocket cache. WP Rocket → MSCache — When a user clicks "Clear Cache" in WP Rocket (or WP Rocket clears cache automatically), MSCache listens to the after_rocket_clean_domain, after_rocket_clean_post, and after_rocket_clean_home hooks and sends corresponding PURGE requests to Varnish. Important: WP Rocket has its own built-in Varnish add-on. If both the WP Rocket Varnish add-on and this MSCache integration are active simultaneously, you may get duplicate PURGE requests to Varnish. The plugin auto-detects this conflict and displays a warning in the Integrations tab. Disable WP Rocket's Varnish add-on when using MSCache. An infinite loop guard prevents MSCache → WP Rocket → MSCache → WP Rocket cycles. FlyingPress Integration FlyingPress is a lightweight WordPress performance plugin focused on page caching and CDN. The integration works similarly to WP Rocket: MSCache → FlyingPress — Calls FlyingPress\Purge::purge_url() for single pages and FlyingPress\Purge::purge_everything() for full cache purge. FlyingPress → MSCache — Listens to the flying_press_purge_everything action. When FlyingPress clears its cache, MSCache also sends a full PURGE to Varnish. The plugin auto-detects FlyingPress via FLYING_PRESS_VERSION constant or class existence and shows the detection status in the Integrations tab. W3 Total Cache Integration W3 Total Cache (W3TC) is a comprehensive performance plugin with page cache, database cache, object cache, and CDN support. The integration is one-directional (MSCache → W3TC):