Skip to content

Why your WooCommerce store still shows old sale prices (page caching and sales)

Customers see the old price while you see the sale? Page caching is the usual cause. How WP Rocket, LiteSpeed and Cloudflare break sale changes, and the fix.

Illustration of two browser windows showing the same product at different prices, with a clock between them

If you see the sale price while customers still see the old one, a page cache is serving them a copy of the page made before the sale started. The same thing happens in reverse when a sale ends: the discount lingers for shoppers until the cached copy expires. The fix is to purge the cache at the moment prices change, keep cached pages short-lived around sale boundaries, and make sure anything that promotes the sale is loaded fresh rather than baked into the cached page. Here is how, for each common cache.

Why admins see the sale and customers don't#

Full-page caches store a finished HTML copy of each page and hand it to the next visitor without running WordPress. That is what makes them fast. It also means the price on the page is whatever it was when the copy was made.

Logged-in users, and anyone with items in their cart, are normally excluded from the cache (WooCommerce sets a woocommerce_items_in_cart cookie that caches look for). So as an admin you always get a fresh page with the new price, while an anonymous shopper gets the cached copy. Checking in a private window, logged out, with an empty cart, shows you what customers see.

This is separate from the question of whether WooCommerce itself switched the price on time. If the stale price is visible in a private window and on the product's edit screen, the cache isn't the problem; see WooCommerce scheduled sale not working.

The three places a sale can be stale#

  1. Page cache on the server (WP Rocket, LiteSpeed Cache, WP Super Cache, W3 Total Cache, WP Fastest Cache, or host-level caching at Kinsta, WP Engine, SiteGround, Cloudways and others).
  2. Edge cache (Cloudflare with APO or a "cache everything" rule, or another CDN caching HTML).
  3. Object or fragment caches that store product data or rendered widgets (Redis object cache, transients, theme fragment caching).

Most stores have at least two of these, and each one needs purging.

Fix 1: purge when the sale starts and ends#

Scheduled sales in WooCommerce switch at midnight in your store's timezone (how scheduled sales work). Cached pages created before midnight are wrong after it.

  • WP Rocket: set Cache Lifespan (Settings → WP Rocket → Cache) to an hour or less for the days around a sale, and use Clear cache at the moment the sale starts. The Preload feature rebuilds pages so the first visitors aren't slowed down.
  • LiteSpeed Cache: set Default Public Cache TTL (Cache → TTL) short around sale boundaries, or purge all from the toolbar. If you want it automated, LiteSpeed's Scheduled Purge URLs (Cache → Purge) lets you purge specific URLs at a set time each day.
  • Cloudflare: if you cache HTML (APO or a cache rule), purge everything from the dashboard, or use the Cloudflare plugin's purge button. Without HTML caching, Cloudflare only caches static files and doesn't affect prices.
  • Host caches: every managed host has a "clear cache" button in its dashboard or WordPress admin bar. Use it after the server-side purge.

If you run sales regularly, set a system cron that purges at 00:01 using your cache plugin's WP-CLI command (for example wp rocket clean --confirm or wp litespeed-purge all). The cron guide for WordPress explains how to run commands on a schedule.

Fix 2: exclude the pages that must never be cached#

Cart, checkout and account pages should never be cached, and cache plugins exclude them automatically when WooCommerce is detected. Check that the exclusions are present (most plugins show them in the Advanced or Exclusions tab). Do not exclude product and category pages wholesale; that throws away the performance benefit for every page that matters. Shorter lifespans and timed purges are the right tool for those.

Fix 3: keep promotions out of the cached copy#

Anything that promotes the sale has the same problem as the price itself. A banner printed into the page, a "sale ends tonight" notice, a list of on-sale products in the sidebar: if the cache made the copy before the sale ended, the promotion runs on after the prices reverted. Shoppers click through to full-price products, which is both a bad experience and, in some jurisdictions, a misleading-pricing issue.

The fix is to load that content after the page, from a request the cache doesn't store. Sales Drawer does this with deferred mode: the drawer is rendered after the page loads, so cached pages always show the current sale, and the drawer disappears the moment nothing is on sale (turn on deferred mode). Whatever tool you use, look for the same property: is the promotion fetched live, or printed into the page?

Fix 4: clear WooCommerce's own caches#

WooCommerce caches some product data in transients, and keeps lookup tables for prices and on-sale status. After a bulk price change or an import, run WooCommerce → Status → Tools → Clear transients and, if "on sale" listings still disagree with the product pages, Regenerate the product lookup tables. If you use a Redis or Memcached object cache, flush it from your host's dashboard or with wp cache flush.

A pre-sale checklist for cached stores#

  1. Day before: shorten the cache lifespan to an hour or less; confirm cart, checkout and account pages are excluded.
  2. At the start: purge the page cache, the edge cache and the object cache, in that order. Then open the home page, a category and a sale product in a private window and confirm the prices.
  3. During the sale: keep the short lifespan if prices or stock change; otherwise restore the normal one.
  4. At the end: purge everything again. Confirm in a private window that prices reverted and that no banner, timer or list still advertises the sale.

The Black Friday checklist for WooCommerce stores fits these steps into the full timeline.

Frequently asked questions#

Why does the sale price show when I'm logged in but not for customers?#

Caches skip logged-in users and serve anonymous visitors a stored copy of the page. Your copy is fresh; theirs was made before the price changed. Purge the cache, then check in a private window.

Do I have to clear the cache every time a sale starts?#

Yes, unless your cached pages expire quickly enough on their own. Set a short cache lifespan around sale starts and ends, or schedule an automatic purge at the time prices switch.

Which WooCommerce pages should be excluded from caching?#

Cart, checkout and my-account, which cache plugins exclude automatically. Keep product, category and content pages cached and rely on purges and short lifespans to keep prices accurate.

Can caching make a sale look like it hasn't ended?#

Yes. Cached copies made during the sale keep showing the sale price and any banners until they expire or are purged. Purge at the end of a sale and make sure promotional elements are loaded fresh rather than cached with the page.

Does Cloudflare cache WooCommerce prices?#

Only if you cache HTML, for example with APO or a "cache everything" rule. With the default settings Cloudflare caches static files only, and your server-side cache is the one to purge.

Does Sales Drawer work with WP Rocket or LiteSpeed?#

Yes. Turn on deferred mode in the plugin settings so the drawer is rendered after the page loads instead of being stored in the cached copy, then clear the cache once.