Skip to main content
KadiCache
Diagnostic Vital · Good <= 800 ms (~14 ms HIT)12 min read1,454 wordsVerified 2026-11-23

Time to First Byte (TTFB) in WordPress & WooCommerce: Complete Server & Edge Guide

Every millisecond your server spends booting PHP, querying MySQL, or negotiating cross-ocean TLS adds directly onto First Contentful Paint and Largest Contentful Paint. Learn how to dissect all 5 phases of TTFB and bring WordPress origin response down to ~14 ms.

Time to First Byte (TTFB) WordPress performance benchmark diagram
0.000 Layout Shift9 Sections✓ Verified
Good (Pass at p75)
<= 800 ms (~14 ms HIT)
Needs Improvement
800 – 1,800 ms
Poor · Weight
> 1,800 ms · Upstream Gatekeeper for FCP & LCP
W3C NAVIGATION TIMING TTFB WATERFALL (GOOD <= 800 MS · KADICACHE EARLY HIT ~14 MS)1. Redirect0ms (Direct HTTPS)2. DNS LookupdomainLookup3. TCP + TLS 1.3HTTP/3 QUIC + 0-RTT4. Server WaitingEarly PHP ~14ms vs 950ms SQL5. First Byte!responseStart (TTFB)startTime (0 ms)responseStart = TTFB (<= 800 ms CrUX Pass)Uncached WordPress spends 85%+ of TTFB inside Phase 4 (PHP + MySQL); Early Delivery + Edge Caching collapse it to milliseconds.
W3C NavigationTiming v2 TTFB waterfall: Redirect + DNS Lookup + TCP/TLS Handshake + Server Request-to-First-Byte Waiting = Total TTFB.W3C / CrUX Spec
WP Admin -> KadiCache -> Page Cache
MODULE TTFB · 2X RETINA
Page caching, pre-WordPress Early Delivery drop-in, nonce-safe TTL presets, and browser cache headers.2880×1840 WebP
⚡ Executive Summary · 30-Second Spec100% Code-Verified
WP Admin Path
WP Admin -> KadiCache -> Cache + Object Cache + Cloudflare
Measured Impact
CrUX Good <= 800 ms · KadiCache Early HIT Median: ~14 ms
DevTools Proof Marker
X-KadiCache: HIT | Server-Timing: kc;desc="early_hit"
  • Official CrUX Threshold (p75): <= 800 milliseconds is Good, 800 – 1,800 ms Needs Improvement, and > 1,800 ms is Poor—while Google Lighthouse flags Reduce initial server response time whenever server waiting exceeds 600 ms.
  • Because browsers cannot discover CSS, fonts, or hero images until byte #1 of HTML arrives, a 1.2 s TTFB consumes nearly half of your entire 2.5 s LCP budget before rendering even starts!
  • Uncached WordPress spends 85%+ of TTFB inside Server Waiting (requestStart -> responseStart) booting wp-settings.php, autoloading bloated wp_options, and running 80–250 SQL queries.
  • KadiCache solves all 3 server tiers in Free Core: Early PHP Drop-In (~14 ms guest HTML), 7-Driver Object Cache (45–70% faster dynamic /checkout/ & misses), and Cloudflare APO / Edge Rules (15–35 ms worldwide).
Table of Contents (9 sections)

Why TTFB Is the Foundation of Every Other Speed Metric#

Time to First Byte (TTFB) measures the elapsed milliseconds between the browser initiating a page navigation (startTime = 0) and receiving the very first byte of the HTTP response body (responseStart). While TTFB is a diagnostic metric rather than one of the three direct ranking Core Web Vitals, it acts as the hard floor beneath FCP and LCP:

  • It is physically impossible for FCP or LCP to be faster than TTFB.
  • If a shared-hosting WooCommerce store has a 1,650 ms TTFB on mobile 4G, you only have 850 ms left to download stylesheets, parse fonts, fetch a 120 KB hero photo, and paint the screen before failing Google’s 2,500 ms LCP limit!
  • Conversely, dropping TTFB from 1,100 ms down to 14–35 ms immediately gifts your frontend 1,065 ms of extra breathing room on every single visit.

Dissecting the 5 Sequential Sub-Phases of TTFB (NavigationTiming v2)#

When you hover over the top Document bar inside Chrome DevTools -> Network -> Timing, TTFB is actually the sum of five distinct network and server stages:

Sub-Phase (PerformanceNavigationTiming)Healthy TargetWhat Happens Under the HoodCommon WordPress Mistake
1. Redirect Duration (redirectEnd - redirectStart)0 msHTTP 301/302 hops before reaching final URLLinking internal menus or Google Ads to http://example.com/shop -> https://www.example.com/shop/ (2 wasted round-trips!)
2. DNS Lookup (domainLookupEnd - domainLookupStart)< 25 msResolving example.com to an IP addressSlow registrar nameservers with 60s TTL instead of Anycast DNS (Cloudflare / Route53)
3. TCP + TLS Handshake (connectEnd - connectStart)< 60 msTCP SYN/ACK + TLS 1.3 key exchangeLegacy TLS 1.2 only (2 round-trips), HTTP/3 QUIC disabled, or origin server 8,000 km from visitors
4. Early 103 Hints Window (Optional)Parallelizes CSS/Fonts!Edge sends <link rel="preconnect/preload"> while origin respondsLeaving Cloudflare Early Hints (103) turned off
5. Server Waiting (Waiting for server response)< 50 ms (~14 ms HIT)PHP-FPM + WordPress core + MySQL query executionUncached WordPress boot (600 – 2,200 ms), ad query-string misses (?fbclid=), or 3 MB autoloaded wp_options!
FIG 01Enabling Page Caching, Early advanced-cache.php Delivery, and Static Browser Cache inside WP Admin -> KadiCache -> CacheZoom 2x

Why Uncached WordPress Spends 900 – 2,200 ms Inside Phase 5 (Server Waiting)#

Unlike static .html sites, an uncached WordPress request triggers a heavy server-side sequence on every single pageview:

  1. Booting PHP & Loading 40+ Plugins: index.php -> wp-load.php -> wp-settings.php loads hundreds of PHP class files across WordPress core, WooCommerce, Elementor/Divi, SEO plugins, and security firewalls.
  2. Loading wp_options (wp_load_alloptions()): Before rendering a single template tag, WordPress executes SELECT option_name, option_value FROM wp_options WHERE autoload IN ('yes', 'on', 'auto'). On mature stores where retired plugins left behind megabytes of serialized arrays, deserializing 2.5 MB of autoloaded options burns 180 – 450 ms of PHP CPU on every request!
  3. Running 80 to 250 MySQL Queries: Mega-menus, widget sidebars, WooCommerce product meta_query / tax_query joins, and translation lookups hammer InnoDB.
  4. Silent Cache Bypasses on Paid Ads & Empty Sessions: Even sites that installed a basic cache plugin often suffer 60% cache misses because Facebook (?fbclid=...), Google Ads (?gclid=...), or TikTok (?ttclid=...) append unique query strings—or a currency/cart plugin sets a session cookie on page 1!

The 3-Layer KadiCache Architecture for Sub-25ms TTFB Everywhere#

Fixing TTFB reliably across anonymous readers, paid ad traffic, international visitors, and logged-in WooCommerce checkouts requires three coordinated layers—all included in KadiCache Free Core:

Layer 1: Pre-WordPress Early PHP Delivery (~14 ms Guest Origin TTFB)#

When Early delivery (advanced-cache.php) is active inside WP Admin -> KadiCache -> Cache (EarlyRequestServer.php):

  • WordPress’s wp-settings.php hands control to wp-content/advanced-cache.php before loading plugins, themes, or opening a MySQL connection (0 SQL queries!).
  • TargetPath.php automatically strips 20+ marketing tracking parameters (utm_*, fbclid, gclid, msclkid, ttclid, _gl) from the cache lookup key—so paid ad clicks hit warm .html.gz snapshots at 99%+ hit rate while browser analytics scripts still read the full URL in the address bar (Mobile, Cookies & Query Strings).
  • Conditional 304 Not Modified Validators (ETag / If-None-Match): Repeat visitors revalidate unchanged pages in < 8 ms with 0 bytes of HTML body transfer.
  • 60-Second Soft Purge Grace: When an editor updates a post, stale cached HTML continues serving for up to 60 seconds (X-KadiCache: STALE) while one background worker rebuilds the page—preventing traffic-spike MySQL stampedes!
FIG 02Accelerating dynamic checkout, admin, and cache-miss MySQL queries via Relay, PhpRedis, Memcached, APCu, or SQLite WALZoom 2x

Layer 2: 7-Driver Persistent Object Cache + Autoload Bloat Cleanup (Dynamic & Checkout TTFB)#

What about requests that must stay dynamic—such as /cart/, /checkout/, /my-account/, logged-in wp-admin editors, or cold cache misses?

  • Enable Persistent Object Cache (ObjectCacheEngine.php): Open WP Admin -> KadiCache -> Object Cache (Object Cache Guide) and enable Relay, PhpRedis, PhpStreamRedis, Memcached, APCu, or SQLite WAL. Combined with 200-key Route Batch Prefetch and Atomic Split Alloptions, dynamic checkout and admin TTFB drops by 45% to 70%.
  • Inspect & Trim Oversized Autoloaded Options (AutoloadAnalyzer.php): Run wp kadicache object-cache info (or check the Autoloaded Options panel inside Object Cache) to pinpoint any plugin storing > 800 KB in wp_options, and run Safe Database Cleanup weekly.

Layer 3: Global Edge Caching (15 – 35 ms Worldwide via Cloudflare)#

FIG 03Deploying Free Edge HTML Cache Rules or Cloudflare APO with automatic WooCommerce cookie bypassZoom 2x

For stores serving visitors across multiple continents, connect WP Admin -> KadiCache -> Cloudflare (Cloudflare 5-Tab Guide):

  • Turn ON HTTP/3 (QUIC), 0-RTT Connection Resumption, Brotli, and Early Hints (103) in Speed & Network.
  • Enable either Free Edge HTML Cache Rule (CloudflareEdgeRules.php — works on $0/mo Free Cloudflare plans!) or Cloudflare APO so anonymous HTML serves from the nearest city while WooCommerce cart/account cookies bypass cleanly.

Measuring Exact TTFB Breakdown in Terminal (curl) & Chrome DevTools#

Use this single curl command from any terminal to measure DNS, TCP, TLS, and exact TTFB (time_starttransfer) alongside KadiCache’s diagnostic headers—without any browser extension noise:

BASHMeasure Exact DNS, TLS & Server TTFB + Verify X-KadiCache Headers via curl
curl -sI -o - "https://your-site.com/?utm_source=test_ad" -w "\n---\nDNS: %{time_namelookup}s | TCP: %{time_connect}s | TLS: %{time_appconnect}s | TTFB: %{time_starttransfer}s\n" | grep -E "HTTP/|X-KadiCache|Server-Timing|CF-Cache-Status|DNS:"

Or paste this PerformanceNavigationTiming snippet in Chrome DevTools -> Console on any live page:

JAVASCRIPTInspect 5-Phase NavigationTiming v2 TTFB in Chrome DevTools Console
const [nav] = performance.getEntriesByType("navigation");
console.table({
  totalTtfbMs: Math.round(nav.responseStart - nav.startTime),
  redirectMs: Math.round(nav.redirectEnd - nav.redirectStart),
  dnsMs: Math.round(nav.domainLookupEnd - nav.domainLookupStart),
  tcpPlusTlsMs: Math.round(nav.connectEnd - nav.connectStart),
  serverWaitingMs: Math.round(nav.responseStart - nav.requestStart),
  serverTiming: (nav.serverTiming || []).map((s) => `${s.name}:${s.description}`).join(", "),
});

Managed WordPress Hosts, Nginx fastcgi_cache & Coexistence Mode#

If your site runs on a managed platform such as Kinsta, WP Engine, Cloudways, SiteGround, Pantheon, or Pressable, server-level Nginx fastcgi_cache or Varnish already sits ahead of PHP-FPM:

  • Automatic Coexistence Mode: KadiCache detects 22 managed-host drop-ins and reverse proxies (Coexistence & Managed Hosts Guide), keeping your host’s edge HTML cache in charge of TTFB while KadiCache synchronizes surgical content purges and powers your frontend Core Web Vitals (Cloud RUCSS, Improve LCP, Delay JS, and Cookieless RUM).
  • PHP 8.2 / 8.3 + OPcache Tuning on Custom VPS: On self-managed Ubuntu / Debian servers, verify opcache.memory_consumption=256 and opcache.validate_timestamps=0 (or 2s) so EarlyRequestServer.php and WordPress core execute straight from shared-memory bytecode with zero .php disk stat overhead.

TTFB Frequently Asked Questions

Is TTFB a direct Google Search ranking Core Web Vital?
Google classifies TTFB as a foundational Web Vital rather than one of the three direct Page Experience ranking metrics (LCP, INP, CLS). However, because TTFB is Subpart #1 of LCP, virtually no WordPress site with a > 1,500 ms TTFB can pass LCP <= 2.5s on mobile cellular networks!
Why is Google’s Good TTFB threshold 800 ms when KadiCache targets ~14 ms?
Google’s 800 ms CrUX threshold includes DNS lookup, mobile 4G radio wake-up, TCP/TLS handshakes, and global geographic distance at the 75th percentile—so keeping your origin PHP response at ~14 ms (and edge CDN response at 15–35 ms) gives real mobile users a huge buffer to stay well below 800 ms.
Why is my homepage TTFB 18 ms, while my /checkout/ TTFB is 620 ms?
Checkout pages contain private customer cart items, shipping addresses, and payment session tokens—so they intentionally bypass shared HTML page cache. Enabling KadiCache’s 7-Driver Persistent Object Cache + PHP 8.2/8.3 OPcache cuts dynamic /checkout/ TTFB down into the 180–280 ms range!
Does enabling Sitemap Preload improve real-visitor TTFB?
Dramatically! Without Sitemap Preload, the first visitor to each long-tail product or blog post after a cache purge suffers a cold cache MISS (700+ ms TTFB). KadiCache’s Smart Sitemap Preload warms pages in the background so real visitors hit pre-built Early Cache snapshots.
Does Cloudflare Flexible SSL hurt TTFB (or cause redirect loops)?
Flexible SSL encrypts visitor-to-Cloudflare traffic over HTTPS but connects Cloudflare-to-Origin over unencrypted HTTP—often causing infinite 301 redirect loops and preventing modern HTTP/2/3 origin multiplexing. Always use Full (Strict) SSL.
1-Click KadiCache TTFB Remedy
Test your live TTFB score or deploy KadiCache in under 2 minutes.
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/Cache/Delivery/Early/EarlyRequestServer.phpapps/wordpress-plugin/src/Cache/ObjectCache/ObjectCacheEngine.phpapps/wordpress-plugin/src/Cache/ObjectCache/AutoloadAnalyzer.phpapps/wordpress-plugin/src/Integrations/Cdn/Cloudflare/CloudflareEdgeRules.php
Connected Topical Cluster · Continue Deepening Your Setup