Skip to main content
KadiCache
Browse 37 Docs Guides & Search

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.

Diagnostics/PageDiagnostic.phpCache/Policy/SignedInspection.phpSupport/RuntimeReasons.phpCli/CacheCli.php
WP Admin -> KadiCache -> Inspect URL Modal (Light)
MODULE 02 · 2X RETINA
Dual-viewport Live URL Inspector probing Desktop and Mobile representations side-by-side without leaving your current tab.1758×1698 WebP
Quick Summary · 30-Second Operational SpecSource-Verified Guide
WP Admin Path
WP Admin -> KadiCache -> Top Bar -> Inspect URL
Expected Outcome
Instant Dual-Viewport Proof · Deterministic Reason Codes
Key Marker / Engine
X-KadiCache: HIT | X-KadiCache-Reason | Server-Timing
  • Use the built-in Inspect URL modal (PageDiagnostic.php + SignedInspection.php) inside WP Admin -> KadiCache to probe Desktop and Mobile guest responses without logging out.
  • Every public HTTP response carries X-KadiCache, X-KadiCache-Reason, X-KadiCache-TTL, ETag, and Server-Timing: kc;desc="early_hit" (or "late_hit").
  • Non-sensitive X-KadiCache-Reason codes tell you why any URL hit, served stale, or bypassed cache without ever exposing private cookie values in HTTP headers.
  • RuntimeReasons.php surfaces actionable self-healing diagnostics in WP Admin and wp kadicache status --format=json whenever 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:

  1. Method 1 — Built-In Inspect URL Modal Inside WordPress Admin (Fastest, No Logout Needed): Click Inspect URL in the top bar of WP 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.php sends clean anonymous loopback requests signed via SignedInspection.php (X-KadiCache-Inspect HMAC verification) so you see exact guest X-KadiCache status, TTFB, active delivery tier, and response headers right inside WordPress.
  2. Method 2 — Logged-Out Browser Incognito / Private Window (DevTools -> Network): Open a brand-new Incognito window (Ctrl+Shift+N or Cmd+Shift+N), press F12 -> Network, click Doc (Document), and load your page twice. Click the main document request (200 OK or 304 Not Modified) and inspect Response Headers.
  3. Method 3 — Terminal curl -I Header Probe: Ideal when testing from a remote workstation or checking how marketing query strings (?utm_source=...) and cookies behave before launching ad campaigns.
  4. Method 4 — wp kadicache diagnose & wp kadicache status via WP-CLI: Returns structured JSON covering drop-in ownership, storage health, 24-hour hit ratios, and single-URL policy decisions.
FIG 01Probing Desktop and Mobile guest cache status, TTFB, and HTTP headers straight from WP Admin -> KadiCacheZoom 2x

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 StatusTypical X-KadiCache-Reason / Server-TimingWhat Happened on the ServerExpected TTFB
HITearly_cache_hit + Server-Timing: kc;desc="early_hit"Served directly from advanced-cache.php before WordPress & MySQL loaded (0 SQL)10 – 20 ms
HITcache_hit + Server-Timing: kc;desc="late_hit"Early stage yielded (e.g., complex plugin routing) and CacheRuntime served the verified snapshot28 – 55 ms
STALEsoft_purge_grace_rebuild / stale windowPost was just edited; visitor received instant cached HTML while 1 worker refreshes in background12 – 22 ms
MISScache_storedUncached public page rendered by WordPress and saved atomically into FileCache for the next guestNormal PHP render (350+ ms)
BYPASSlogged_inRequest carried wordpress_logged_in_* or author/admin session cookieUncached dynamic PHP
BYPASSexcluded_pathURL matched Excluded URL Paths or per-page Never cache this page (PostSettings.php)Uncached dynamic PHP
BYPASSsession_data / session_nonce / private_commerce_routeCart, checkout, account, active PHP session, or private session-bound nonce detectedUncached (no-store)
BYPASSquery_stringUnrecognized dynamic query parameter not in IGNORED_QUERY or opt-in cacheQueryRulesUncached 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:

BASHVerify Guest HIT, UTM Parameter Normalization & 304 ETag Revalidation
# 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=json

Checking 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), and Hit Ratio %, or run wp kadicache object-cache status (Object Cache Guide).
  • Self-Hosted Google Fonts & Lazyload: In an Incognito tab’s DevTools -> Network, filter by fonts.googleapis.com (0 requests when local fonts are active) and filter by Img to confirm off-screen images wait until you scroll (Font Optimization & Media Lazyload).
  • Cloud Pro Optimizations (CSS & JavaScript, Images, Core Web Vitals): Visit WP Admin -> KadiCache -> Cloud Connection to confirm Active Link status and Pages Improved count, then run Compare Cached vs Uncached inside Core 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 uncached MISS builds. Well-warmed blogs and corporate sites typically sustain 94% – 99%, while high-SKU WooCommerce catalogs with faceted filters sustain 85% – 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 visitor p75 TTFB split cleanly between Cache HIT and Uncached traffic.

Frequently Asked Operational Questions

Why does Chrome DevTools show Cache-Control: private, no-cache on HTML even when X-KadiCache: HIT is present?
That is intentional and protects dynamic WordPress behavior! X-KadiCache: HIT proves your server served the page from KadiCache in ~14 ms. Sending Cache-Control: private, no-cache, must-revalidate with an ETag tells visitor browsers to revalidate HTML quickly (304 Not Modified) instead of trapping stale logged-out pages in local browser disk cache after a shopper logs in or adds an item to their cart.
What is the difference between Server-Timing: kc;desc="early_hit" and kc;desc="late_hit"?
early_hit means wp-content/advanced-cache.php served the cached snapshot before WordPress core, plugins, or MySQL initialized. late_hit means the early gate yielded to WordPress (for example on specialized multilingual plugin hooks) and CacheRuntime served the cached snapshot right after lightweight policy checks.
Does X-KadiCache: STALE mean my cache is broken?
No—STALE is KadiCache’s stampede-protection shield working as designed! During the 60-second Soft Purge window right after a post edit, one background worker regenerates fresh HTML while concurrent visitors receive the instant STALE copy in ~14 ms instead of queuing slow parallel database queries.
Can visitors see sensitive cookie names or user IDs inside X-KadiCache-Reason headers?
Never. KadiCache maps internal policy evaluations strictly to fixed, generic reason tokens (such as logged_in, session_data, excluded_path, or query_string) and never echoes raw cookie names, values, or user identifiers in public HTTP headers.
How do I check cache status when a site is behind HTTP Basic Auth on staging?
Configure your staging credentials inside WP Admin -> KadiCache -> Tools -> Transfer & Staging so loopback diagnostics and sitemap preloaders authenticate cleanly, or run wp kadicache diagnose <url> directly over SSH.
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/Diagnostics/PageDiagnostic.phpapps/wordpress-plugin/src/Cache/Policy/SignedInspection.phpapps/wordpress-plugin/src/Support/RuntimeReasons.phpapps/wordpress-plugin/src/Cli/CacheCli.php
Was this engineering guide helpful?