info

Affiliate Disclosure: This article contains benchmarked tools that may compensate us. We only recommend hardware and software tested in our lab environments for maximum LCP and INP efficiency.

WordPress Cache Configuration Errors: Post-Mortem Report

Incident: 2,400 Duplicate Orders in 6 Hours Root cause: a Cloudflare “Cache Everything” page rule overrode WooCommerce no-store headers on /checkout/ and /order-received/. The CDN cached the order confirmation page and served it to multiple users. Fix: Cloudflare Cache Rules (bypass for WooCommerce) Lessons Learned Never use “Cache Everything” without explicit WooCommerce exclusions. Set Cache-Control:…

calendar_today schedule — min read folder
format_list_bulleted

Table of Contents

Incident: 2,400 Duplicate Orders in 6 Hours

Root cause: a Cloudflare “Cache Everything” page rule overrode WooCommerce no-store headers on /checkout/ and /order-received/. The CDN cached the order confirmation page and served it to multiple users.

Fix: Cloudflare Cache Rules (bypass for WooCommerce)

(http.request.uri.path contains "/cart") or
(http.request.uri.path contains "/checkout") or
(http.request.uri.path contains "/my-account") or
(http.cookie contains "woocommerce_cart") or
(http.cookie contains "wordpress_logged_in")

Lessons Learned

  • Never use “Cache Everything” without explicit WooCommerce exclusions.
  • Set Cache-Control: no-store explicitly in checkout hooks — do not rely only on CDN rules.
  • Monitor for unexpected cache hits on authenticated pages via Cloudflare Analytics.
  • Test cache configuration on a staging environment that mirrors production exactly.
mark_email_read

Get Weekly Performance Benchmarks

Join 2,400+ WordPress engineers. Real lab data, no fluff.

No spam. Unsubscribe anytime.

engineering

About the Lab & Author

This benchmark and optimization guide was written by the Performance Engineering team at CoreVitalsLab. With over a decade of experience optimizing high-traffic WooCommerce stores and enterprise WordPress deployments, we focus exclusively on data-driven TTFB reduction, caching architecture, and passing Core Web Vitals.