Skip to content

Home / Blog

Troubleshooting

Slow WooCommerce Cart and Checkout? Causes and Fixes

Slow WooCommerce Cart and Checkout? Causes and Fixes

If your WooCommerce checkout is slow while product pages load quickly, the cause is almost always that cart and checkout cannot come from the page cache. Every cart and checkout request runs PHP and queries the database live, and checkout also waits for outside services such as your payment gateway and shipping-rate APIs. The fix is to find the slow request, add a persistent object cache, trim what runs on checkout and make sure your hosting can handle busy moments.

This guide stays on the cart and checkout. If your whole site is slow, start with why is my website slow.

Why is WooCommerce checkout slow when the rest of the store is fast?

WooCommerce checkout is slower because cart, checkout and My Account show information for one customer only, so they have to be built fresh for every request instead of being served from cache. Product and category pages look the same for everyone and can be served as cached copies.

A correct caching setup excludes these pages and the cart cookies; our guide to hosting for a small WooCommerce store lists them. That is right, but it means these pages get no help from page caching.

Checkout also does more work than a normal page:

  • It recalculates totals whenever something changes. When a customer changes the address, shipping method or coupon, WooCommerce recalculates shipping, taxes, discounts and the available payment methods. The classic checkout does this through an AJAX request called update_order_review; the block-based checkout talks to WooCommerce’s Store API under /wp-json/wc/store/v1/.
  • Placing the order is a chain of tasks. WooCommerce creates the order, reduces stock, contacts the payment gateway and sends emails before the customer sees the thank-you page.

So checkout speed is the speed of PHP, your database and outside services combined, with no cache in front.

How do I find what is slowing my checkout?

Measure the uncached requests themselves. Go through checkout as a real customer, see which request takes longest, then find out what that request does on the server.

  1. Use a private window, logged out. Add a product to the cart, open the cart, then go to checkout.
  2. Open your browser’s developer tools (F12) and the Network tab. Reload checkout, then change the shipping country or method and watch which request takes longest: wc-ajax=update_order_review on the classic checkout, or requests to wc/store/v1 on the block checkout.
  3. Install the Query Monitor plugin, ideally on a staging copy. Query Monitor is a free debugging plugin that lists database queries by the plugin or theme that ran them, and every HTTP request WordPress made to an outside service with the time it took. A slow call to a shipping or payment API stands out immediately.
  4. Isolate on staging. Switch to a default theme and disable everything except WooCommerce and your payment gateway. If checkout becomes fast, turn plugins back on one at a time and measure after each.
  5. Check the server side. In cPanel, look at your account’s resource usage around the times customers complained.

How to read the results: a long outside HTTP call points to the gateway or shipping service; many slow database queries point to missing object caching, a heavy plugin or a bloated database; slowness only at busy hours points to capacity.

What are the common causes, and how do I fix them?

1. Cart fragments running on every page

Cart fragments is a WooCommerce script that refreshes the mini-cart through an AJAX request called get_refreshed_fragments, and that request is not served from the page cache. Before WooCommerce 7.8, released in June 2023, the script loaded on every page, which WooCommerce says led to unnecessary requests that could severely load the server on busy stores. Since 7.8 it loads only when the classic Cart widget is shown or another script depends on it, but some themes build that widget into the header and some plugins still load it.

How to check: open a blog post or the home page with the Network tab open and look for get_refreshed_fragments.

How to fix it: switch to the Mini-Cart block, which does not use the cart fragments API, or limit the script to shop, cart and checkout pages. Then confirm the cart count still updates.

2. No persistent object cache

By default, WordPress throws its object cache away at the end of every request. The WordPress developer reference states that the object cache is non-persistent unless you install a persistent caching plugin. On uncached cart and checkout pages, that means the same settings, product data and session lookups go back to the database on every click.

A persistent object cache, such as Redis or Memcached, keeps those results in memory between requests. How to fix it: connect Redis through the LiteSpeed Cache plugin’s object cache settings or a dedicated object cache plugin, using the connection details from your host. Then test: add to cart, change quantities and place a test order.

3. A slow payment gateway or other outside services

When a customer clicks “Place order”, your server often waits for outside services before it can answer: the payment gateway, live shipping rates from a courier, address validation, fraud checks, or a sync to your accounting or CRM tool. If one of them is slow, the customer waits too, and Query Monitor’s HTTP panel shows which one.

  • If live courier rates are slow, consider flat-rate or table-based shipping.
  • Let syncs to CRMs and mailing lists run in the background after the order, if the plugin supports it.
  • Use the gateway’s official, maintained plugin and keep it updated.

4. Too many plugins and scripts on checkout

Every plugin that hooks into checkout adds work to each recalculation: custom fields, upsells, delivery-date pickers and complex coupon rules. Chat widgets, trackers and heatmaps make the page slower to respond to taps. Remove anything on checkout that does not help the customer finish paying.

5. A bloated database

Stores pile up expired transients, old sessions and years of orders, and every uncached checkout request reads from that database.

  • WooCommerce > Status > Tools has an Expired transients tool that clears expired transients across WordPress.
  • The Customer sessions tool deletes all session data, including live carts. Use it only at a quiet time.
  • If your orders are still stored in the old posts tables, plan a move to High-Performance Order Storage (HPOS) under WooCommerce > Settings > Advanced > Features, after testing your extensions on staging.
  • Check WooCommerce > Status > Scheduled Actions for a large backlog of pending or failed actions.

6. Not enough PHP capacity at busy moments

Each cart and checkout request occupies a PHP process until it finishes, so many customers checking out at once can exhaust your account’s allowance. On CloudLinux hosting, an account at its entry process limit returns 508 errors to new requests, and reaching memory or process limits causes 500 or 503 errors. Fix the slow requests first, because faster requests free capacity. If your store hits its limits on ordinary days, it has outgrown its plan; our guide on which hosting plan you need helps you size it.

Quick diagnosis table

What you see Likely cause Where to start
Every page sends get_refreshed_fragments Cart fragments Mini-Cart block or limit the script
Slow checkout even with few visitors No object cache, heavy plugins or a bloated database Redis, plugin audit, cleanup
Freezes after changing address or shipping Shipping-rate or tax service, checkout plugins Query Monitor HTTP panel
“Place order” spins for a long time Payment gateway or post-order syncs Outside calls, background syncs
Fine at night, 508 or 503 errors at peak PHP capacity Faster requests, then resources
Taps on checkout feel laggy Heavy front-end scripts Remove trackers and widgets from checkout

A checklist before a big sale

  1. Take a backup and test every change on a staging copy first.
  2. Place a full test order with each payment method.
  3. Confirm the object cache is connected.
  4. Remove scripts and plugins checkout does not need.
  5. Review your resource usage over recent weeks.
  6. Update WooCommerce, your theme and gateway plugin well before the sale, never on the day.

Every Start Bigger hosting plan runs LiteSpeed with LSCache, NVMe storage, and Redis and Memcached for object caching, with CloudLinux isolation to limit how much one account can affect the others. WP Toolkit gives you a staging copy for safe testing, and our support covers WordPress performance and common plugin problems. If you would rather hand over updates, backups and security for your store, look at our Managed Site.

In short

  • A WooCommerce checkout is slow mostly because cart and checkout cannot be page-cached and also wait on outside services.
  • Find the slow request first with the Network tab and Query Monitor.
  • Stop cart fragments from running everywhere, and connect a persistent object cache such as Redis.
  • Trim checkout plugins and scripts, fix slow outside calls and keep the database tidy.
  • Plan capacity for sale days, not ordinary days.

Frequently asked questions

Should I cache the WooCommerce checkout page to make it faster?

No. Cart, checkout and My Account show details for one customer, so a cached copy could show the wrong cart or someone else's information. Speed these pages up another way: a persistent object cache, fewer plugins on checkout and faster outside services.

Is the block checkout faster than the classic checkout?

It depends on your store. Both versions do the same work on the server: calculating totals, shipping, taxes and payment. The block checkout talks to WooCommerce's Store API, and WooCommerce keeps improving it, so test both on a staging copy and measure before you switch the live store.

Does Redis help a slow WooCommerce checkout?

Usually, yes. A persistent object cache such as Redis keeps repeated database lookups in memory, which helps exactly the pages that cannot be page-cached. It will not fix a slow payment gateway, a slow shipping-rate API or a heavy plugin, so measure those separately.

Why is my checkout slow only during sales?

Because many customers are checking out at the same time, and every checkout request holds a PHP process until it finishes. When an account reaches its limits, customers start seeing slowdowns and 508 or 503 errors. Making each request faster frees capacity, then check whether your plan's resources match your peaks.

Will clearing customer sessions speed up my store?

It can shrink a very large sessions table, but WooCommerce's Customer sessions tool deletes all session data, including the live carts of customers shopping right now. Use it only at a quiet time and never as a routine fix.

Read next

Jordan & Gulf

Does Server Location Matter? Germany, the Gulf and Speed

An honest look at what a server in Germany means for visitors in Jordan and the Gulf: what distance really adds, when it matters, how caching and a CDN reduce it, and how to measure it yourself.

Ready to start, or have a question first?

We answer on WhatsApp Saturday to Thursday, 9:00 am – 9:00 pm Amman time (GMT+3)

WhatsApp