WooCommerce slow after adding to basket? Why it happens and how to fix it

Dave Hilditch •

If your WooCommerce store is quick while you browse it, then drags the moment you add something to the basket (or cart, if you’re in the US), you’re not imagining it. On 10 UK stores I measured on 13 November 2026, the median product page went from 0.1 seconds to 2.0 seconds once one item was in the basket.

It usually isn’t your theme or your host. It’s your page cache stepping aside for shoppers. Here’s why it happens, how to check your own store in two minutes, and how to fix it without showing one shopper’s basket to another.

Why WooCommerce gets slow after adding to basket

A page cache stores a finished copy of each page and hands that copy to the next visitor, so PHP, WordPress and WooCommerce don’t have to build it again. For someone browsing your shop, that’s what makes it fast.

The catch is that one cached copy goes to everybody. If the copy had been built for a shopper with three items in their basket, the next visitor would see those three items. So caching plugins, hosts and CDNs all follow the same rule: when a visitor has a basket or is logged in, don’t serve them the cache.

WooCommerce tells them by setting cookies the moment something goes into the basket: woocommerce_items_in_cart, woocommerce_cart_hash and wp_woocommerce_session_ followed by a hash. A logged-in customer carries a wordpress_logged_in_ cookie. Most page caches see one of those and step aside, and every page that shopper opens from then on is built from scratch.

That’s the wrong way round. Your most valuable visitors, the ones who have just shown they want to buy, get your slowest pages. And it gets worse when the store is busy, because every one of those pages needs CPU time and your server only has so many cores (more on that below).

What I measured on 10 real UK stores

On 13 November 2026 I recorded short videos of 10 UK WooCommerce stores, first browsing as a guest and then with one item in the basket. I’m not naming them. For each page I loaded it once to warm the cache, then took the median time to first byte (TTFB, how long before the server starts sending the page) of 3 more loads, in Chrome with the browser’s own cache turned off. Every browsing load was a cache hit, and every basket load came back with a cache MISS or BYPASS header.

0.1 s
median product page, browsing (10 UK stores)
2.0 s
median product page, one item in the basket
17×
median slowdown (range 7 to 75×)

On the product page:

  • Browsing, it took 0.03 to 0.18 seconds (median 0.1 s).
  • With one item in the basket, the same page took 0.66 to 2.69 seconds (median 2.0 s).
  • That’s 7 to 75 times slower, with a median of 17 times.

Homepages went the same way. The worst went from 0.09 seconds to 10.6 seconds with one item in the basket.

Two things to bear in mind. I measured from one machine in Greece, so every number includes the network trip to a UK server, and a shopper in the UK would see lower times in both columns. The ratio is the point: the network is the same either way, and the difference is the server building the page. And these 10 stores were picked because they showed the problem, so they show what it looks like when it happens, not how common it is.

For a rough idea of how common, I screened 303 UK WooCommerce stores the same day. 51 blocked my checker (bot protection or rate limits). Of the 252 left, 192 didn’t serve a cache hit even to a logged-out visitor, and most of those (107) sent no cache header at all. Their homepages took a median of about 1.6 seconds to start responding, from the same machine. Those stores have a bigger problem than the basket, because browsing visitors are waiting too.

Of the 60 stores that did serve cached pages, 21 got clearly slower once a basket was added (at least twice as slow and at least 300 ms slower), 25 didn’t, and 14 I couldn’t test because my script couldn’t find or add a product.

How to check your own store in two minutes

You don’t need any tools beyond your browser. These steps are for Chrome; Firefox is almost identical.

  1. Open a product page on your store in a private (incognito) window, so you start with no basket and aren’t logged in.
  2. Open developer tools (F12, or Cmd+Option+I on a Mac) and click the Network tab. Tick “Disable cache” so the browser doesn’t use its own saved copy.
  3. Reload the page three times. The first load can be a cache miss, so ignore it.
  4. Click the first row in the list, which is the page itself. On the Timing tab, “Waiting for server response” is your time to first byte. On the Headers tab, scroll to the response headers and look for a cache header such as x-cache, cf-cache-status, x-litespeed-cache, x-grid-cache or x-nitro-cache. HIT means the page came from the cache.
  5. Add any product to the basket.
  6. Go back to the same product page, reload it three times, and check the same two things again.
  7. Empty the basket when you’re done.

If the wait jumps and the header changes from HIT to MISS or BYPASS, or disappears, your cache is stepping aside for shoppers. Do it again logged in as a customer to check that side too.

A couple of things that catch people out. cf-cache-status: DYNAMIC means Cloudflare isn’t caching the page itself for anyone, which is normal unless you’ve set up APO or a cache rule, so look for your host’s or plugin’s header as well. And some caching plugins, WP Rocket among them, don’t add a header at all; view the page source and look for their comment at the very bottom instead.

It gets worse when you’re busy

On my own test server (tests.superspeedyplugins.com: 4 CPU cores, a WooCommerce store with about a million products and no page cache), I had shoppers with real baskets request the same product page at the same moment. I measured on the server itself, so there’s no network time in these numbers (10 November 2026, two passes):

  • 1 shopper: 0.2 seconds.
  • 10 shoppers at once: about 0.8 seconds for the typical shopper, about 4 times slower.
  • 20 shoppers at once: 1.4 seconds for the typical shopper and 2.3 seconds for the slowest, about 7 times slower.

The server has 4 cores, so it builds about 4 pages at a time and the rest wait their turn. That’s one server and one store whose pages take 0.2 seconds to build, so don’t read those multiples as a prediction for your store. A store whose pages take longer to build starts queuing sooner. Sale days are when the most shoppers hold a basket at the same time.

What doesn’t fix it

  • Per-user caches. WP Rocket’s User Cache keeps a separate set of cache files for each logged-in user. Each customer’s first view of each page is still built from scratch, the cache can’t be preloaded for them, and the number of cache files multiplies with every customer.
  • Removing the basket cookie from your cache’s exclusions. The exclusion is what causes the slowdown, but it’s also what stops one shopper’s basket count, mini basket or name being served to the next visitor. Take it out on its own and the cache starts handing one shopper’s basket, and sometimes their name and account details, to the next visitor. Plenty of store owners have seen exactly that when they tried to fix caching themselves, and it is why most caches play it safe and step aside.
  • A bigger server. More cores let more pages build at once, so the queue forms later, but every page for every shopper with a basket is still built from scratch.
  • Redis or another object cache. It makes building a page quicker, which helps, but the page is still built for every view. Page caching and object caching solve different problems, and you want both.

What does fix it

Serve every visitor the same safe cached page, and load the personal parts separately.

The copy in the cache has nothing personal in it: no basket count, no mini basket, no account name. A small uncached request then fills in that shopper’s basket, prices and stock. The basket page, checkout and My Account stay uncached, as they should. Home, shop, category and product pages come from the cache whether the visitor has a basket or not.

The hard part is your particular store. Every theme and plugin prints personal content in its own way, and missing one means one visitor sees another’s data. So however you do it, test it as a guest, a shopper with a basket and a logged-in customer, page by page, on a staging copy, before it goes anywhere near your live store.

Super Speedy Plugins page served from full-page cache with one item in the basket
On my own store, a shopper with an item in their basket got cached pages with an 80 ms median time to first byte (3 requests, measured 13 August 2026). That’s my own site measured from Athens: your number depends on your cache service and where your visitors are.

Two ways to get it on your store

If you or your developer use an AI coding agent like Claude Code, Codex or Cursor, the Cache Upgrader Kit for WooCommerce is the do-it-yourself route. It gets your page cache serving shoppers with a basket and logged-in customers, not just browsing visitors. You install it on a staging copy of your store and connect your agent to it over MCP. The agent runs the safety checks (guest, shopper with a basket and logged-in customer, compared page by page), fixes what fails using the 30 ready-made recipes or writes its own for plugins the library doesn’t cover, and repeats until every check passes. Then you move the recipes to live, run the checks again there, and switch caching on for baskets and logged-in customers when you’re ready. It’s a one-off payment, a lifetime Super Speedy Ajax licence for the same site is included, and it has our 60-day money-back guarantee.

If you don’t use an AI coding agent, or you’d rather not spend your own time on it, Cache Upgrader for WooCommerce: Done For You is me setting up the same kit on your store for you, at a fixed price. I run it on a staging copy of your store, check it as a guest, a shopper with a basket and a logged-in customer, then put it live with a tested rollback. It’s done within seven calendar days of getting access and a staging copy, with three months of support included. Buy it here and I’ll be in touch to get started.

Summary

  • Most page caches step aside once a shopper has a basket or logs in, because one cached copy goes to everybody.
  • From then on every page for that shopper is built from scratch by PHP, WordPress and WooCommerce.
  • On 10 UK stores, the median product page went from 0.1 s browsing to 2.0 s with one item in the basket (7 to 75 times slower, median 17 times).
  • On my test server, 20 shoppers with baskets at once made the typical page about 7 times slower than one shopper alone.
  • You can check your own store in two minutes with your browser’s developer tools.
  • Per-user caches, a bigger server and Redis don’t fix it. Removing the basket exclusion on its own leaks one shopper’s basket to another.
  • The fix is one safe cached page for everyone, with the basket, prices and stock loaded separately for each visitor. The Cache Upgrader Kit for WooCommerce does that for shoppers with a basket and logged-in customers alike.

Frequently asked questions

Why is my WooCommerce site slow after adding to cart?

Adding a product sets WooCommerce’s basket cookies, such as woocommerce_items_in_cart and wp_woocommerce_session_. Most page caches stop serving cached pages to any visitor carrying those cookies, so every page that shopper opens afterwards is built from scratch. On 10 UK stores I measured, that made product pages 7 to 75 times slower.

Why doesn’t my WooCommerce cache work for logged-in customers?

For the same reason. Logging in sets a wordpress_logged_in_ cookie, and most caches skip any visitor carrying it, in case the cached page holds someone else’s name or account details. Logged-in customers get every page built from scratch, just like shoppers with a basket. The same fix covers both: the Cache Upgrader Kit for WooCommerce serves logged-in customers and shoppers with a basket from your page cache, with their own name, basket and prices loaded separately.

Is it safe to cache WooCommerce pages for shoppers with a basket?

Yes, as long as the cached page holds nothing personal and each shopper’s basket, prices and stock are loaded separately. It isn’t safe to remove the basket cookie from your cache’s exclusions on its own, because then one shopper’s basket can be shown to the next. The basket page, checkout and My Account should always stay uncached.

Will a faster server or Redis fix a slow basket?

They help each page build faster, but every page for every shopper with a basket is still built from scratch, and a busy store still queues. On my 4-core test server, 20 shoppers at once made the typical page about 7 times slower. Serving those shoppers from the page cache is the fix.

How do I check if my cache is bypassed for shoppers?

Open a product page in a private window with developer tools on the Network tab, reload it three times, and note the time to first byte and the cache header (x-cache, cf-cache-status or similar). Add a product to the basket, reload the same page and compare. A slower time and a MISS or BYPASS header mean your cache steps aside for shoppers.

Fixing this on a real store?

Cache Upgrader Kit for WooCommerce does it for you.

Comments