How to Verify KadiCache Is Working (Live Inspector & HTTP Headers)
Use the built-in Live URL Inspector modal, Incognito browser checks, curl headers, and WP-CLI diagnostics to confirm X-KadiCache: HIT and Server-Timing.
- Use the built-in Inspect URL modal (
PageDiagnostic.php+SignedInspection.php) insideWP Admin -> KadiCacheto probe Desktop and Mobile guest responses without logging out. - Every public HTTP response carries
X-KadiCache,X-KadiCache-Reason,X-KadiCache-TTL,ETag, andServer-Timing: kc;desc="early_hit"(or"late_hit"). - Non-sensitive
X-KadiCache-Reasoncodes tell you why any URL hit, served stale, or bypassed cache without ever exposing private cookie values in HTTP headers. RuntimeReasons.phpsurfaces actionable self-healing diagnostics inWP Adminandwp kadicache status --format=jsonwhenever filesystem or host conditions need attention.
Four Reliable Ways to Verify KadiCache on Any URL#
Guessing whether a WordPress cache plugin is actually serving pages—or silently bypassing on every visit because of a stray session cookie—is the #1 cause of wasted troubleshooting time. KadiCache gives site owners, agencies, and DevOps engineers four deterministic verification methods, ranked from easiest UI check to automated CLI inspection:
- Method 1 — Built-In
Inspect URLModal Inside WordPress Admin (Fastest, No Logout Needed): Click Inspect URL in the top bar ofWP Admin -> KadiCache, enter any URL on your site (or pick a quick template), and run an instant dual-viewport probe (Desktop+Mobile). Behind the scenes,PageDiagnostic.phpsends clean anonymous loopback requests signed viaSignedInspection.php(X-KadiCache-InspectHMAC verification) so you see exact guestX-KadiCachestatus,TTFB, active delivery tier, and response headers right inside WordPress. - Method 2 — Logged-Out Browser Incognito / Private Window (
DevTools -> Network): Open a brand-new Incognito window (Ctrl+Shift+NorCmd+Shift+N), pressF12-> Network, click Doc (Document), and load your page twice. Click the main document request (200 OKor304 Not Modified) and inspect Response Headers. - Method 3 — Terminal
curl -IHeader Probe: Ideal when testing from a remote workstation or checking how marketing query strings (?utm_source=...) and cookies behave before launching ad campaigns. - Method 4 —
wp kadicache diagnose&wp kadicache statusvia WP-CLI: Returns structured JSON covering drop-in ownership, storage health, 24-hour hit ratios, and single-URL policy decisions.
Complete Reference Table: X-KadiCache & X-KadiCache-Reason Headers#
Every guest HTTP response handled by KadiCache emits clear, privacy-safe headers (CachedResponse.php & EarlyRequestServer.php) so you never have to dig through PHP logs to understand a cache decision:
X-KadiCache Status | Typical X-KadiCache-Reason / Server-Timing | What Happened on the Server | Expected TTFB |
|---|---|---|---|
HIT | early_cache_hit + Server-Timing: kc;desc="early_hit" | Served directly from advanced-cache.php before WordPress & MySQL loaded (0 SQL) | 10 – 20 ms |
HIT | cache_hit + Server-Timing: kc;desc="late_hit" | Early stage yielded (e.g., complex plugin routing) and CacheRuntime served the verified snapshot | 28 – 55 ms |
STALE | soft_purge_grace_rebuild / stale window | Post was just edited; visitor received instant cached HTML while 1 worker refreshes in background | 12 – 22 ms |
MISS | cache_stored | Uncached public page rendered by WordPress and saved atomically into FileCache for the next guest | Normal PHP render (350+ ms) |
BYPASS | logged_in | Request carried wordpress_logged_in_* or author/admin session cookie | Uncached dynamic PHP |
BYPASS | excluded_path | URL matched Excluded URL Paths or per-page Never cache this page (PostSettings.php) | Uncached dynamic PHP |
BYPASS | session_data / session_nonce / private_commerce_route | Cart, checkout, account, active PHP session, or private session-bound nonce detected | Uncached (no-store) |
BYPASS | query_string | Unrecognized dynamic query parameter not in IGNORED_QUERY or opt-in cacheQueryRules | Uncached dynamic PHP |
Notice also X-KadiCache-TTL: it shows the remaining fresh lifetime in seconds for the served cache entry, while ETag (W/"...") enables HTTP 304 Not Modified responses (6 – 10 ms) when repeat visitors revalidate a page already in their browser cache.
Terminal curl Commands to Test Guest, Ad-Click & Revalidation Flows#
Run these four safe read-only curl commands from any terminal to verify every layer of KadiCache delivery:
# 1. First request (primes cache if cold) + Second request (confirms Early HIT)
curl -sI https://example.com/ >/dev/null
curl -sI https://example.com/ | grep -iE "^(http/|x-kadicache|server-timing|etag|cache-control)"
# 2. Confirm paid ad tracking URLs (?utm_source=...&fbclid=...) hit the EXACT same warm cache!
curl -sI "https://example.com/?utm_source=facebook&fbclid=IwAR12345" | grep -iE "^(x-kadicache|server-timing)"
# 3. Confirm logged-in cookie triggers safe BYPASS (never leaks admin bar)
curl -sI -H "Cookie: wordpress_logged_in_test=1" https://example.com/ | grep -i "^x-kadicache"
# 4. Deep JSON diagnostic via WP-CLI on the server
wp kadicache diagnose https://example.com/shop/ --format=jsonChecking Active Front-End & Core Web Vitals Optimizations#
Beyond HTML page caching, you can confirm each enabled KadiCache optimization module in seconds without technical guesswork:
- Object Cache (
WP Admin -> KadiCache -> Object Cache): Check the live Connected pill, active driver (Relay,PhpRedis,APCu,SQLite), andHit Ratio %, or runwp kadicache object-cache status(Object Cache Guide). - Self-Hosted Google Fonts & Lazyload: In an Incognito tab’s DevTools -> Network, filter by
fonts.googleapis.com(0requests when local fonts are active) and filter byImgto confirm off-screen images wait until you scroll (Font Optimization & Media Lazyload). - Cloud Pro Optimizations (
CSS & JavaScript,Images,Core Web Vitals): VisitWP Admin -> KadiCache -> Cloud Connectionto confirmActive Linkstatus andPages Improvedcount, then run Compare Cached vs Uncached insideCore Web Vitals -> PageSpeed & CrUX Lab(RUM & PageSpeed Guide) to see your verified Mobile & Desktop Lighthouse score delta!
Reading the 24-Hour Visit & Hit-Ratio Telemetry (VisitStats.php)#
Alongside single-URL inspection, WP Admin -> KadiCache -> Dashboard aggregates lightweight 24-hour cache performance metrics (VisitStats.php) directly on your server with zero external tracking:
- Cache Hit Ratio (
%): Shows the proportion of eligible anonymous requests served directly from cache (HIT+STALE) versus uncachedMISSbuilds. Well-warmed blogs and corporate sites typically sustain94% – 99%, while high-SKU WooCommerce catalogs with faceted filters sustain85% – 96%once Smart Sitemap Preload completes. - Cached Copies & Disk Footprint: Displays exact stored snapshot counts and compressed megabytes on disk so you can verify your cache directory is healthy.
- Real-Visitor TTFB Confirmation: Cross-check header checks with
WP Admin -> KadiCache -> Core Web Vitals -> Real-User Vitals (RUM)(Cookieless RUM Guide) to see live visitorp75 TTFBsplit cleanly betweenCache HITandUncachedtraffic.
Frequently Asked Operational Questions
Why does Chrome DevTools show Cache-Control: private, no-cache on HTML even when X-KadiCache: HIT is present?
What is the difference between Server-Timing: kc;desc="early_hit" and kc;desc="late_hit"?
Does X-KadiCache: STALE mean my cache is broken?
Can visitors see sensitive cookie names or user IDs inside X-KadiCache-Reason headers?
How do I check cache status when a site is behind HTTP Basic Auth on staging?
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.