Skip to main content
KadiCache
Browse 37 Docs Guides & Search

Coexistence Mode & 22 Managed WordPress Hosts

Run KadiCache safely alongside Kinsta, WP Engine, Cloudways, SiteGround, Pantheon, Pressable, SpinupWP, and 15+ other managed hosts without overwriting host drop-ins.

Integrations/Hosts/HostRegistry.phpIntegrations/Hosts/HostCapabilities.phpIntegrations/Hosts/HostPurge.phpCache/Delivery/DropinInspector.php
WP Admin -> KadiCache -> Page Cache
MODULE 03 · 2X RETINA
Page caching, pre-WordPress Early Delivery drop-in, nonce-safe TTL presets, and browser cache headers.2880×1840 WebP
Quick Summary · 30-Second Operational SpecSource-Verified Guide
WP Admin Path
WP Admin -> KadiCache -> Cache (Drop-In Status)
Expected Outcome
22 Managed Hosts Verified · Zero Drop-In Collisions
Key Marker / Engine
DropinInspector.php | HostRegistry.php | HostPurge.php
  • Automatically detects 22 managed WordPress hosting platforms in HostRegistry.php (Kinsta, WP Engine, Cloudways, SiteGround, Pantheon, Pressable, SpinupWP, Flywheel, WordPress.com, RunCloud, Pagely, and more).
  • Never overwrites a foreign or host-managed wp-content/advanced-cache.php file (DropinInspector.php), entering Coexistence Mode automatically.
  • Synchronizes single-URL and full-site cache purges directly to host Varnish, Nginx FastCGI, and edge layers via HostPurge.php without infinite purge loops.
  • Disables .htaccess rewrite edits automatically on Nginx/managed platforms (HostRegistry::htaccessDisabled()) and warns if mod_pagespeed (ServerOptimizerNotice.php) or a competing cache plugin is active.

Why Managed WordPress Hosting Breaks Traditional Cache Plugins#

Managed WordPress platforms—such as Kinsta, WP Engine, Pantheon, Pressable, Flywheel, WordPress.com Business/VIP, and SiteGround—run their own upstream Nginx FastCGI, Varnish, or edge page-caching layer in front of PHP. Many of those platforms also place a locked, platform-owned wp-content/advanced-cache.php drop-in or mu-plugin inside every WordPress installation, and run pure Nginx containers where .htaccess files are ignored or restricted.

Installing a legacy WordPress cache plugin that forcefully overwrites advanced-cache.php or injects conflicting Cache-Control headers on managed hosts causes three severe production bugs:

  1. Double-Caching Stale Loops: Origin disk cache serves old HTML to the host’s Varnish/Nginx cache during purges, causing updated WooCommerce prices or news headlines to stay stuck for hours.
  2. Broken Host Tooling & Staging: Overwriting a host-owned advanced-cache.php breaks host dashboard purge buttons, geolocation headers, or staging environment bypasses.
  3. Recursive Purge Storms: Hook listeners between the plugin and the host MU-plugin trigger each other back-and-forth until PHP exhausts stack memory.

KadiCache was engineered from the ground up in HostRegistry.php, HostCapabilities.php, HostPurge.php, and DropinInspector.php to work harmoniously on every WordPress host—claiming full Early PHP Drop-In ownership where local caching belongs, and entering smooth Coexistence Mode whenever a managed host owns the HTML edge layer.

Complete Matrix of Detected Managed Hosts (HostRegistry::providers())#

HostRegistry.php inspects verified platform constants, environment variables, helper classes, and server markers (never guessing from spoofable client headers alone) across 22 hosting providers:

Hosting ProviderPage Cache Owner ModeAutomated Host Purge BridgeUpstream Cache Header.htaccess Edits
KinstaHost CoexistenceSurgical URL & Full Purge (kinsta_cache)x-kinsta-cacheAuto-Disabled (Nginx)
WP EngineHost CoexistenceNative WpeCommon Varnish/Edge Purgex-cacheAuto-Disabled
CloudwaysLocal Early Cache + VarnishSurgical x-varnish URL & Full Purgex-varnishSupported (Apache+Varnish)
SiteGroundHost CoexistenceSiteGround_Helper Dynamic Cache Purgex-proxy-cacheSupported
PantheonHost Coexistencepantheon_wp_clear_edge_paths Global CDNx-pantheon-styx-hostnameAuto-Disabled (Nginx)
SpinupWPHost Coexistencespinupwp_purge_url / spinupwp_purge_sitefastcgi-cacheAuto-Disabled (Nginx)
Pressable / WordPress.comHost CoexistenceNative Edge Cache Flush Integrationx-nananana / x-acAuto-Disabled
Flywheel / Pagely / PressidiumHost CoexistenceNative Platform Cache Purge Hooksx-fw-cache / x-ninukis-cacheAuto-Disabled
RunCloud / WPX / GoDaddy / DreamPressHost CoexistenceNative Hub / Varnish / WPaas Purgex-runcloud-cache / x-varnishHost-Matched
o2switch / WP ServeurLocal Early Cache + VarnishLocal Early HIT + Varnish Key/URL Purgex-vc-cache / x-varnishSupported
Raidboxes / Savvii / Presslabs / one.comHost CoexistenceNative Host Flush APIsx-rb-cache / x-vc-enabledHost-Matched

Notice the essential architectural distinction on Cloudways, o2switch, and WP Serveur ('owner' => 'local'): those platforms sit Varnish in front of standard writable WordPress directories and benefit from both KadiCache’s local advanced-cache.php Early Delivery (handling origin cache misses and conditional requests in ~14 ms) and automatic Varnish PURGE synchronization (HostRegistry::cloudwaysVarnishActive() respects HTTP_X_APPLICATION: varnishpass whenever Varnish is disabled for an app)!

FIG 01Trusted proxy validation, Varnish reverse-proxy overrides, s-maxage shared cache headers, and 404 caching inside WP Admin -> KadiCache -> ToolsZoom 2x

What KadiCache Runs When Coexistence Mode Is Active#

When your site runs on a Host Coexistence platform (like Kinsta, WP Engine, Pantheon, or SpinupWP), KadiCache automatically yields wp-content/advanced-cache.php to the host while keeping all other high-impact speed engines 100% active:

Switching Ownership From a Deactivated Third-Party Cache Plugin (DropinTakeover.php)#

What if you are on a standard VPS, cPanel, Plesk, or Cloudways server—not a locked host—and wp-content/advanced-cache.php is left behind by a previously installed cache plugin (such as WP Rocket, Breeze, Cache Enabler, or W3 Total Cache)?

  1. Active Competing Plugin Detected (CompetingPageCache.php): AdminPage::competingCacheNotice() displays a clear banner offering a 1-click Switch Cache Owner button (kadicache_switch_cache_owner) or guiding you to deactivate the competing page-cache plugin cleanly.
  2. Orphaned Foreign advanced-cache.php File: Open WP Admin -> KadiCache -> Cache, expand Drop-in Details & Recovery, and click Take Over Drop-In (DropinTakeover.php), or run wp kadicache repair via WP-CLI. KadiCache backs up and replaces the orphaned drop-in atomically.

Use this quick reference when onboarding a new client server to pick the optimal combination of KadiCache layers in under a minute:

  • Unmanaged VPS / Dedicated (Nginx or Apache + PHP-FPM + Redis): Enable Page Caching, Serve Before WordPress Loads (Early Delivery), PhpRedis / Relay Object Cache, and Cloudflare OAuth (Cloudflare & Varnish).
  • Cloudways (Apache + Nginx + Varnish + Redis): Deactivate Breeze, keep Cloudways Varnish enabled in the Cloudways console, enable KadiCache Early Delivery + PhpRedis Object Cache—KadiCache purges Cloudways Varnish (x-varnish) automatically on every update.
  • Kinsta / WP Engine / Pantheon / Pressable / SpinupWP: Keep the host’s native edge/FastCGI page cache enabled (Coexistence Mode engages automatically), enable all KadiCache front-end CSS/JS/Font/Lazyload/Cloud Pro optimizations, and use KadiCache’s unified Purge All toolbar button to flush both layers together.

Frequently Asked Operational Questions

Should I disable Kinsta Cache, WP Engine Cache, or SiteGround Dynamic Cache to use KadiCache?
No! Keep your managed host’s server-level page cache enabled. KadiCache automatically detects Kinsta, WP Engine, SiteGround, Pantheon, Pressable, and 17 other platforms, enters Coexistence Mode, optimizes your HTML/CSS/JS/Fonts/Images/Object Cache, and triggers the host’s native purge API automatically whenever content changes.
How does KadiCache work with Breeze and Varnish on Cloudways?
Cloudways allows local wp-content/advanced-cache.php ownership alongside upstream Varnish. You can safely deactivate Breeze so KadiCache handles both Early PHP Delivery, Object Cache, front-end CWV optimizations, and native Cloudways Varnish URL/full purges.
Why are Static Browser Cache .htaccess settings hidden on Kinsta, Pantheon, or WP Engine?
HostRegistry::htaccessDisabled() detects pure-Nginx and managed platforms where Apache .htaccess files are unsupported or managed at the container level, hiding inapplicable .htaccess controls automatically so your admin UI stays accurate.
Does KadiCache work on OpenLiteSpeed and LiteSpeed Enterprise servers?
Yes. KadiCache runs at full speed on OpenLiteSpeed, LiteSpeed Enterprise, Nginx, and Apache alike—giving agencies one unified caching and Core Web Vitals stack across every client server.
What happens if I migrate a site from Cloudways (local drop-in) to Kinsta (host drop-in)?
Upon booting in the new Kinsta environment, HostRegistry::detect() recognizes Kinsta markers immediately, yields advanced-cache.php ownership cleanly without errors, and routes future purges through Kinsta’s cache API.
Gergis — Lead Systems & Cache Architect
Principal WordPress & Cloud Edge Architect
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Integrations/Hosts/HostRegistry.phpapps/wordpress-plugin/src/Integrations/Hosts/HostCapabilities.phpapps/wordpress-plugin/src/Integrations/Hosts/HostPurge.phpapps/wordpress-plugin/src/Cache/Delivery/DropinInspector.php
Was this engineering guide helpful?