To speed up WooCommerce, you need to fix two different problems. The first is the shop front: product pages and category pages that should load fast for every visitor, which is mostly about caching, images and scripts. The second is the dynamic part: cart, checkout, account pages and the admin, which cannot be fully cached and depend on your server, your database and your plugins.
Most speed guides only deal with the first part, which is why store owners install a caching plugin, see a better PageSpeed score, and still get complaints that checkout is slow. In my experience a slow WooCommerce store almost always has a database or hosting problem hiding behind the front-end one.
Here is the order I work in when a client sends me a slow store.
Why WooCommerce is harder to speed up than a normal WordPress site
A brochure WordPress site can be served almost entirely from a page cache. Every visitor sees the same HTML, so the server does very little work.
A store is different. Once someone adds a product to the cart, their pages become personal. WooCommerce sets a cookie, and good caching setups stop serving cached pages to that visitor so the cart count and prices stay correct. Checkout, cart and My Account must never be cached at all. That means real PHP and real database queries for your most valuable visitors: the ones about to pay.
So a fast WooCommerce store needs fast uncached performance, not just a good cache. Keep that in mind through every step below.
Step 1: Measure before you change anything
Write down a baseline so you know what helped:
- PageSpeed Insights for the home page, one category page and one product page, mobile.
- Time to first byte (TTFB) on the cart and checkout pages with a product in the cart. You can see this in the Network tab of Chrome DevTools.
- How long the WooCommerce Orders screen and Products screen take to load in the admin.
If the shop front is slow but cart and admin are fine, focus on front-end fixes. If everything is slow, start with hosting and the database. The general WordPress speed guide covers the front-end basics that apply to any site.
Step 2: Get hosting that can handle uncached traffic
Cheap shared hosting is fine for a five-page site. It struggles with a store, because every checkout request needs CPU time and database queries, and on shared servers you are competing with many other sites.
What I look for in WooCommerce hosting:
- A current PHP version (8.2 or newer at the time of writing) with OPcache enabled.
- Enough PHP workers for your traffic at checkout times.
- Server-level page caching that already knows to skip WooCommerce pages and cookies.
- Redis or Memcached available for object caching.
- Database on fast storage, ideally on the same server or close to it.
Moving a busy store off budget shared hosting is often the single biggest improvement, and nothing else on this list will fully make up for an underpowered server.
Step 3: Cache safely
Page caching is still essential for product and category pages. The rules that matter for a store:
- Exclude
/cart/,/checkout/and/my-account/from the page cache. - Bypass the cache for visitors with the
woocommerce_items_in_cartorwp_woocommerce_session_cookies. - Do not cache pages with geolocated prices unless your caching tool supports it.
Most good caching plugins and managed hosts handle these by default, but check. I have fixed stores where a customer saw another customer's cart because someone added a custom cache rule.
Then add a persistent object cache with Redis. WooCommerce runs many repeated queries for options, product data and sessions. An object cache keeps those results in memory, which speeds up the pages that cannot be page-cached, including the admin.
Step 4: Clean and modernise the database
Older stores carry a lot of weight in the database. These are the checks I run:
Turn on HPOS if you have not. High-Performance Order Storage moves orders out of the general WordPress posts tables into dedicated order tables. It is the default for new stores, but many older stores still run on the old storage. Check WooCommerce > Settings > Advanced > Features, confirm your plugins are compatible, sync, then switch.
Clear old Action Scheduler entries. WooCommerce and its extensions schedule background tasks. Completed and failed actions can pile up into hundreds of thousands of rows. You can see them under Tools > Scheduled Actions.
Check autoloaded options. Plugins store settings in wp_options, and some are loaded on every request. Uninstalled plugins often leave large autoloaded rows behind. This query shows the biggest ones:
SELECT option_name, LENGTH(option_value) AS size
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto-on', 'auto')
ORDER BY size DESC
LIMIT 20;Your table prefix may differ from wp_. Always take a full backup before deleting anything, and only remove rows you can trace to a plugin you no longer use.
Remove expired transients and old sessions. WooCommerce cleans these up on a schedule, but if WP-Cron is not running reliably, they build up.
If you see database errors while doing this, stop and restore from the backup rather than trying more deletions on a live store.
Step 5: Fix the front end
Now the parts visitors see.
Product images
Stores have more images than any other kind of site. Set sensible thumbnail sizes in your theme, serve WebP or AVIF, and make sure category pages are not loading full-size images scaled down by the browser. Lazy-load images below the fold, but not the main product image, which is often the LCP element. Image optimisation has its own guide.
Cart fragments
The cart fragments script updates the mini cart count with an AJAX request. On older setups it ran on every page for every visitor, which defeats caching. Recent WooCommerce versions only load it when a mini cart needs it, but some themes and plugins still enqueue it everywhere. Check the Network tab for wc-ajax=get_refreshed_fragments on a page with no cart icon. If it is there, find what is loading it.
Scripts and styles from plugins
Many WooCommerce extensions load their CSS and JavaScript on every page, even where they do nothing. A wishlist plugin does not need to load on the About page. Use an asset manager plugin or a small code snippet to unload them where they are not used.
Theme and page builder weight
Heavy themes with sliders, mega menus and animation libraries add up quickly. On stores I usually prefer a lightweight theme and build product templates with the block editor or a lean builder setup.
Step 6: Audit plugins
The average slow store I see has too many plugins, and a few of them are doing heavy work on every request. To find them:
- Install Query Monitor on a staging copy.
- Load a product page, the cart and the admin Orders screen.
- Look at queries by component and PHP time by component.
- Disable the worst offenders one at a time on staging and measure again.
Common culprits are related-product plugins that run complex queries, live search, dynamic pricing rules, and analytics plugins that log every visit in the database.
A WooCommerce speed checklist
| Area | Check | Done |
|---|---|---|
| Hosting | PHP 8.2+, OPcache, enough workers | |
| Caching | Page cache with cart/checkout/account excluded | |
| Caching | Redis object cache active | |
| Database | HPOS enabled and synced | |
| Database | Action Scheduler and autoload cleaned | |
| Images | WebP/AVIF, correct thumbnail sizes | |
| Scripts | Cart fragments only where needed | |
| Scripts | Plugin assets unloaded where unused | |
| Plugins | Heavy plugins found with Query Monitor | |
| Checkout | Uncached TTFB measured and improved |
The short version
WooCommerce speed comes in two halves. Cache and slim down the shop front, and make the uncached parts fast with good hosting, Redis, a clean database and fewer heavy plugins. Measure cart and checkout, not just the home page, because that is where buyers feel the slowness.
If your store is slow and you want a clear diagnosis, I do this as part of my speed optimization service. Send me the store URL and tell me which pages feel slowest.