Contact us
Discuss a project
Setup guide · v1.6.1

Cache Warmer: step-by-step setup guide

Keep every page hot in cache (40–100 ms TTFB instead of 1.5–2 seconds): automated sitemap.xml warming, multi-variant language & currency preloading, 18 caching systems, full WP‑CLI support (including purge), form & WooCommerce WP Nonce protection (TTL ≤ 10 h + 48 h guest nonce), and built-in LiteSpeed CSS-breakage protection.

Cache Warmer
WordPressWooCommerceLiteSpeedCloudflare APOTelegram
Jump to another guideMenu

Video tutorial (0:16) — step-by-step overview & setup

HD · English voiceover

Quick start: 3 steps to get running

Verify your sitemap.xml source

Open BIGOR STUDIO → Cache Warmer — the plugin auto-detects sitemap_index.xml from Yoast SEO, Rank Math, The SEO Framework, or WordPress core. Click "Check URL list" to confirm total page count.

Enable auto-warming, mobile mode & cache variants

On the Automation tab, turn on warming after cache purge and your recurring schedule. On the Settings tab, enable mobile warming and, if needed, the Cache Variants block (PRO).

Set concurrency limits & WooCommerce priority

For shared hosting, keep 2–3 concurrent requests and a 300–500 ms pause; on a VPS, use 5–10 requests. Enable WooCommerce bestseller priority so your top‑200 products are warmed first.

1. Multi-variant warming: languages, currencies & Legacy Accept

On multilingual stores (WPML, Polylang) and sites with currency or city switchers (WOOCS, WCML), page caches store separate copies of the same URL keyed by cookies or the Accept-Language header. In Cache Warmer v1.6.1 (PRO), all of them can be warmed automatically:

  1. Open the Settings tab and scroll to "Cache variants: languages, currencies & Accept".
  2. In "Cookie & Accept‑Language variants", add up to 6 lines (one variant per line) using Label | cookie=value or Label | lang:code.
  3. If you serve AVIF/WebP images via Vary: Accept (for instance, paired with Media Optimizer), turn on "Additionally warm a non-AVIF/WebP copy (Vary: Accept)" to preload a fallback copy for legacy browsers and bots.
  4. Click "Save" and start warming. In the run log and CSV export, these requests are labeled variant, and wp cache-warmer status reports dedicated variants_ok and variants_err counters.
USD | wcml_client_currency=USD EUR | woocs_currency=EUR EN | lang:en-US MSK | city_slug=moscow
Line syntaxHeader sent to serverTarget plugins
USD | wcml_client_currency=USDCookie: wcml_client_currency=USD (multiple cookies separated by ;)WCML, WOOCS, FOX Currency Switcher, city/branch switchers, wholesale pricing
EN | lang:en-USAccept-Language: en-US,en;q=0.9WPML, Polylang, TranslatePress, LiteSpeed / Nginx language cache
Legacy Accept toggleAccept: text/html,... without image/avif or image/webpSites using Vary: Accept with Media Optimizer
Built-in overload & CRLF-injection protection: even with mobile warming and all 6 cache variants active, CWP_Http strictly chunks outgoing batches so parallel connections never exceed your batch_size limit — preventing request storms. All header values are automatically stripped of line breaks.
Cache Warmer v1.6.1 Overview tab and Warming Impact TTFB report
Cache Warmer v1.6.1 Overview tab: real TTFB improvement from 1,553 ms (MISS) down to 74 ms (HIT) — a −95% response-time reduction.

2. LiteSpeed shield, Object Cache (Memcached/Redis), 18 caching systems & page builders

A notorious issue on OpenLiteSpeed / LiteSpeed Enterprise: when WordPress auto-updates plugins via wp-cron.php or WP-CLI, X-LiteSpeed-Purge: * response headers never reach the web server, leaving visitors with stale cached HTML pointing to deleted CSS/JS bundles (404 broken layouts).

  1. Auto-purge & signed HMAC HTTP relay for LiteSpeed + Object Cache (enabled on all plans, including FREE): under Settings → Requests, keep "Auto-purge cache & warm homepage after updates (18 caching systems)" enabled. Whenever plugins, themes, or core update from WP‑CLI or WP‑Cron, Cache Warmer dispatches a signed HMAC loopback request to live web PHP (with a CURLOPT_RESOLVE fallback behind NAT/Cloudflare). Inside the web process, LiteSpeed CSS/JS bundles and external Object Cache (Memcached/Redis) are flushed, X-LiteSpeed-Purge: * is emitted, and the homepage is immediately warmed for desktop and mobile. On non-LiteSpeed stacks (Nginx, WP Rocket, Apache + Redis/Memcached), the same relay synchronizes the web Object Cache after CLI updates.
  2. Selective page-builder & Gutenberg CSS purge (v1.6.1): CSS caches for Elementor, Divi (ET_Core_PageResource), Beaver Builder (FLBuilderModel), and Gutenberg (wp_clean_theme_json_cache()) are purged only when the builder/block plugin, active theme, or WordPress core actually updates (controlled via cwp_should_clear_elementor_css and cwp_should_clear_builder_css filters). When wp-content/object-cache.php is present, builder cleanup never runs directly inside CLI PHP — it is relayed via signed flags (cwp_ls_el=1, cwp_ls_bld=...) into live web PHP strictly before wp_cache_flush(), preventing desync and CSS 404 errors.
  3. Safe relay dry-test: under Diagnostics → Maintenance, click "Test" next to "LiteSpeed CLI / Cron" (or "Object Cache CLI / Cron" on non-LiteSpeed sites) to verify signed loopback delivery without flushing live cache.
  4. 18 supported caching systems: LiteSpeed / OpenLiteSpeed, WP Rocket (page + minify), W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, FlyingPress, WP‑Optimize, Cache Enabler, Breeze, SG Optimizer, Hummingbird, Comet Cache, Swift Performance, Powered Cache, Nginx Helper, Varnish (Proxy Cache Purge), and Cloudflare APO / Super Page Cache.
  5. Warming priority (PRO): under Settings → Warming Order, enable "Warm popular WooCommerce products & categories first" (top‑200 by sales) and optionally connect Yandex Metrika priority (counter ID + OAuth token with read-statistics scope).
New in v1.6.1 (FREE & PRO): automatic guard against missing or zero-byte Elementor CSS files (including the native Elementor Pro Loop Builder bug where loop-{id}.css and post-{id}.css share _elementor_css and return 404 after a cache purge). Uses a fast is_file() && filesize() > 0 path (0 DB queries on 99.99% of requests) with a 10-minute cooldown.
Speed, cache variants & WP Nonce Guard settings in Cache Warmer
Settings tab in Cache Warmer v1.6.1: URL sources, WP Nonce Guard (TTL ≤ 10h), 18-system auto-purge, and currency/language cache variants (PRO).

3. Form & WooCommerce protection against WP Nonce expiration (v1.6.1)

A standard WordPress WP Nonce is guaranteed valid for at least 12 hours (12 h tick, 24 h maximum), whereas LiteSpeed Cache defaults public page TTL to 7 days (604,800 s) — and OpenLiteSpeed does not include paid ESI for automatic nonce refresh. As a result, visitors run into "Security error" failures when submitting contact forms or checking out as guests in WooCommerce. In Cache Warmer v1.6.1, this is fixed automatically across all plans (including FREE):

  1. Automatic cache TTL guard (≤ 10 hours / 36,000 s): enabled by default under Settings → Form & WP Nonce Protection. Dynamically caps public TTL for LiteSpeed Cache (via litespeed_control_finalize across LSCWP 3.x–7.9+ and frontend filter litespeed_conf_load_option_cache-ttl_* on 7.7+, without locking admin setting fields) and WP Rocket (rocket_cache_lifespan). ESI blocks remain untouched. Paired with scheduled background warming, pages stay warm (HIT) while expired nonces can never get stuck in cache.
  2. Extended guest nonce_life (48 h, 24 h tick): applies strictly to unauthenticated visitors (!is_user_logged_in()) on the frontend, AJAX (admin-ajax.php), and REST API. Logged-in accounts and wp-admin stay on the default 24 h lifetime. Combined with TTL ≤ 10 h, guests retain at least 14 hours of safety margin even on browser tabs left open overnight.
  3. Live TTL diagnostics (8 cache plugins) & 1-click LiteSpeed fix: the Overview (Site & Cache card), Settings, Diagnostics tabs, and wp cache-warmer status report live TTL health across LiteSpeed, WP Rocket, WP Super Cache, Cache Enabler, Breeze, WP‑Optimize, FlyingPress, and W3TC. Clicking "Write 10 h to LiteSpeed" updates cache-ttl_pub and cache-ttl_frontpage through LiteSpeed's official API and purges stale 7-day pages.
Developer filters: customize the TTL cap and guest nonce lifetime with cwp_nonce_max_ttl (default 36000 s) and cwp_guest_nonce_life (default 172800 s).

4. All WP‑CLI commands (including purge), Deploy Webhook & reports

For CI/CD pipelines, system cron, and SSH operations without PHP‑FPM timeouts, use the built-in WP‑CLI commands:

WP‑CLI commandAction & supported flags
wp cache-warmer warmStarts cache warming with a live progress bar. Flags: --limit=N, --background (background mode, LITE/PRO), --errors (retry failed URLs from last run), --force (run even if paused).
wp cache-warmer purgeUniversal purge across all active systems out of the 18 supported caches (including the HMAC HTTP relay for LiteSpeed CSS/JS and external Memcached/Redis Object Cache) plus instant homepage warming. Flags: --dry-run (safe check without purging), --no-warm (purge only), --builders (also safely refresh Elementor, Divi, Beaver Builder, and Gutenberg CSS via web PHP).
wp cache-warmer statusDisplays progress, warmed, cached, errors, mobile_ok/err, variants_ok/err, plus cache_ttl, nonce_ttl_guard, and guest_nonce_hours. Flag: --format=json.
wp cache-warmer stopGracefully stops an active warming run and releases locks.
wp cache-warmer processExecutes a single background warming step — add to system crontab (* * * * *) if your host blocks loopback HTTP requests.
wp cache-warmer purge --dry-run
wp cache-warmer purge && wp cache-warmer warm --background
wp cache-warmer status --format=json
* * * * * cd /path/to/site && wp cache-warmer process >/dev/null 2>&1

Deploy webhook & notifications (PRO)

  • Deploy webhook: enable under Automation → Deploy Webhook and trigger the secret URL from CI/CD: curl -fsS "https://your-site.com/?cwp_hook=YOUR_TOKEN". HTTP status codes: 202 — queued in background, 409 — already running or paused, 403 — invalid token or PRO required, 429 — rate-limited to once per minute.
  • "Warming Impact" report & alert channels: measures cache hit ratio (HIT %), average MISS vs. HIT latency, and net TTFB savings in ms. Sends reports to Email, Telegram (custom relay URL supported if the server cannot reach api.telegram.org), and any generic JSON webhook (Slack, Discord, Microsoft Teams, Mattermost).
  • Broken-link alerts & SSRF protection: reports 404/500 URLs discovered during warming; every request validates DNS A/AAAA records, blocks private IP ranges and blind redirects, and always excludes WooCommerce cart, checkout, and My Account endpoints.

Frequently asked questions & troubleshooting

Will cache warming overload shared hosting — especially with currency variants and mobile mode?

No. You control concurrency (2–3 parallel requests on shared hosting, 5–10 on a VPS), inter-batch pause, and a Load Average cutoff. Even when mobile warming and all 6 cache variants are enabled, outgoing requests are strictly chunked so parallel connections never exceed your configured batch limit.

How do I warm different currencies and languages (WPML, Polylang, WOOCS, WCML)?

In PRO, open Settings → Cache variants: languages, currencies & Accept and add up to 6 lines formatted as Label | cookie=value (e.g., USD | wcml_client_currency=USD) or Label | lang:en-US for the Accept-Language header.

Do I need extra configuration for LiteSpeed CSS auto-update protection?

No. The signed HMAC HTTP relay for X-LiteSpeed-Purge is built into Cache Warmer, enabled by default on all plans (including FREE), and runs automatically. You can test it without flushing live cache via Diagnostics → Maintenance → LiteSpeed CLI / Cron → Test or by running wp cache-warmer purge --dry-run.

How can I purge all caches and immediately warm the homepage from a deployment script?

Run wp cache-warmer purge over SSH (optional flags: --dry-run for a safe check, --no-warm to skip homepage warming, or --builders to safely refresh Elementor, Divi, Beaver Builder, and Gutenberg CSS via web PHP). The command flushes all 18 caching systems, LiteSpeed CSS/JS, and Memcached/Redis Object Cache, then immediately warms the homepage.

Which 18 caching systems are supported?

LiteSpeed / OpenLiteSpeed, WP Rocket (page + minify), W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, FlyingPress, WP‑Optimize, Cache Enabler, Breeze, SG Optimizer, Hummingbird, Comet Cache, Swift Performance, Powered Cache, Nginx Helper, Varnish (Proxy Cache Purge), and Cloudflare APO / Super Page Cache — plus Object Cache (Memcached/Redis) synchronization and selective CSS purges for Elementor, Divi, Beaver Builder, and Gutenberg theme.json.

Why is the extra Legacy Accept warming pass useful?

When your server delivers AVIF/WebP via the Accept header (e.g., with Media Optimizer), standard warming creates cached copies for modern browsers. Enabling Legacy Accept preloads an additional copy without image/avif or image/webp for older browsers and crawlers.

What should I do if background warming doesn't start on my hosting?

On the Automation tab, click "Test background launch". If your host blocks loopback HTTP requests from the server to itself, add * * * * * cd /path/to/site && wp cache-warmer process >/dev/null 2>&1 to your system crontab — background warming will run reliably without loopback calls.

Why do forms show a "Security error" on OpenLiteSpeed / LiteSpeed Cache and how does Cache Warmer fix it?

LiteSpeed Cache defaults to caching pages for 7 days, whereas a WordPress WP Nonce lives at least 12 hours (and OpenLiteSpeed lacks ESI for refreshing nonces). In v1.6.1 across all plans (including FREE), Cache Warmer automatically caps cache TTL at 10 hours (36,000 s), extends guest nonce_life to 48 hours (leaving wp-admin untouched), and offers a 1-click button to write 10 h into LiteSpeed settings and purge stale cache.

How can I view statistics specifically for cache variants?

In the activity log and CSV export, variant requests are marked with type variant, and running wp cache-warmer status [--format=json] outputs separate variants_ok and variants_err counters.

BIGOR STUDIO Engineering Support

Still have setup questions?

Message our engineers directly — we will tell you which 3 settings your site actually needs, help with LiteSpeed/WooCommerce, or configure everything turnkey.

Send a request on the site Reply within one business day · direct to engineers, no Tier-1 bots