---
title: Caching plugins and Pricepep prices
description: "Wrong or old prices with WP Rocket, LiteSpeed Cache or another page cache? What to exclude, when to purge, and how Pricepep's own shop price cache works."
url: "https://pricepep.com/docs/caching/"
updated: "2026-12-02"
category: Troubleshooting
---

# Caching plugins and Pricepep prices

A full-page cache stores a page once and serves the same copy to everyone, so prices that depend on the customer, the cart or the time can show wrong. Keep cart, checkout and account pages uncached, don't serve cached pages to logged-in customers when you have customer-based rules, and purge the cache when rules change or a timed offer starts or ends.

## What should my caching plugin do?

| Setting | Why |
| --- | --- |
| Don't cache cart, checkout and my account pages | WooCommerce needs these live. Most caching plugins exclude them automatically. |
| Don't cache pages for logged-in users | Role, customer and order history rules give logged-in customers other prices. |
| Prices by country (product pricing rules with address conditions, since 2.6.0): use **Geolocate (with page caching support)**, or don't cache shop and product pages | A cached page would show one visitor's country prices to everyone. That option keys cached pages by the billing address, while these rules read the shipping address: if many orders ship to another address, don't cache shop and product pages. See [prices by country](/docs/checkout-conditions/#checkout-address-conditions). |
| Purge after you save Pricepep rules or settings | Cached pages keep the old prices. |
| Purge when a timed rule starts or ends, or use a short lifetime | A cached page doesn't know the sale started. |
| Allow WordPress AJAX requests | [Your Price](/docs/your-price/), [Product Banners](/docs/product-banners/), the Countdown Timer and per-variation tables load through AJAX. |

## What works on cached pages?

| Feature | On a cached page |
| --- | --- |
| Cart and checkout prices | Always calculated live |
| Your Price, Product Banners, Countdown Timer | Loaded per visitor after the page, so they stay right |
| Volume Pricing Table, simple products (and one table for all variations) | Part of the page HTML, so it's cached with the page |
| Volume Pricing Table, variations (individual tables) | Loaded per visitor |
| Shop prices with **Change display prices in shop** | Part of the page HTML, so they're cached with the page |

## How does Pricepep's own price cache work?

When **Change display prices in shop** is on, Pricepep keeps calculated shop prices for each product so pages load faster. They are kept in the product's data, or in the object cache when the site has a persistent object cache (such as Redis or Memcached); then visitors' page views write nothing to the database.

- Entries are recalculated when you change rules, Pricepep settings or the product's prices.
- They expire after 7 days, or sooner when a rule's Date & Time conditions change the price earlier (**Days of month** at the next midnight, **Months** at the start of the next month).
- They aren't used for prices that depend on the visitor:
  - for logged-in customers, when product pricing rules use **Customer**, **Customer - Value** or **Purchase History** conditions;
  - for guests whose billing email is known (typed at checkout), when the rules use **Customer - Value** or **Purchase History** conditions;
  - for every product and every visitor while any active product pricing rule has a shipping address condition (since 2.6.0), since the address differs between visitors;
  - for non-empty carts, when the rules use cart conditions;
  - for non-empty carts with **Change - Include all adjustment types** and a quantity-based rule (**Bulk pricing**, **Tiered pricing**, **Group of products**, **Buy x get x** or **Buy x get y**): since 2.6.0 only for the products such rules can price, and the other products keep their cached prices; for every product when a rule has **Other** product conditions (**Cart item data**, **Coupons applied**) or **Total limit** is a **Total discount limit**.

You don't need to clear it by hand; saving your rules is enough. To keep calculated prices for one page view only (more calculation on every page, nothing stored), a developer can add `define('RIGHTPRESS_PRODUCT_PRICE_SHOP_PERSISTENT_CACHE', false);` to `wp-config.php` or return false from the `rightpress_product_price_shop_persistent_cache` filter; see [RightPress library hooks](/docs/rightpress-library-hooks/).

## Common symptoms

- **Sale price still shown after the sale ended:** the page cache wasn't purged. Purge it, or set a shorter lifetime (see the [limited-time sale example](/docs/limited-time-offer-for-product-category/)).
- **Guests see wholesale prices:** a page cached for a logged-in customer was served to guests. Stop caching logged-in users.
- **Banner or timer never appears:** a script optimisation setting may delay or combine the plugin's scripts, or the cache blocks AJAX. Exclude the Pricepep scripts from delay or combine options and test again.

## Frequently asked questions

### Do I need to exclude product pages from the cache?

Only if product prices depend on the visitor or the cart and are shown on those pages, for example role prices for logged-in customers when your cache also serves logged-in users, or prices by country (since 2.6.0), unless you use WooCommerce's Geolocate (with page caching support). That option keys cached pages by the billing address, so it fits stores whose orders mostly ship to it.

### Does Pricepep have its own cache?

Yes, for shop prices, kept in product data or a persistent object cache. It's recalculated when you save rules or settings and expires after 7 days, or sooner for timed rules.

## Related articles

- [Shop shows a different price than the cart](https://pricepep.com/docs/prices-shown-vs-charged/)
- [Pricepep discount not applied? A checklist](https://pricepep.com/docs/discounts-not-applied/)
- [Limited-time sale for a product category](https://pricepep.com/docs/limited-time-offer-for-product-category/)
- [Slow site with many pricing rules](https://pricepep.com/docs/performance-many-rules/)

All articles in [Troubleshooting](https://pricepep.com/docs-category/troubleshooting/)
