On this page
A slow store is not a cosmetic problem; it costs direct sales. A visitor waiting for a slow product page leaves before adding to the cart, and a customer facing a stumbling checkout page abandons the order at the last step. WooCommerce is a great platform, but it is inherently heavier than a simple blog, and speeding it up requires understanding what specifically makes it heavy, not just applying general speed tips. If you are just starting out, begin with the guide to launching a WooCommerce store to build a solid foundation, and for the general principles of speeding up any site, see the complete guide to speeding up your website. Here we dive into what is specific to stores: sessions, cart fragments, cache exclusions, HPOS, and a slow checkout and admin dashboard.
Why is a WooCommerce store heavier than an ordinary WordPress site?
An ordinary blog shows relatively static content that can be cached entirely: the same article for every visitor. A store is fundamentally different: many of its pages are personalized for each visitor and cannot be cached, and every uncached request means running PHP and querying the database from scratch.
The store components that weigh down performance
| Component | Why it weighs things down | Impact |
|---|---|---|
| Cart, checkout and my account | Per-user pages that cannot be cached | Every visit runs PHP + full queries |
| Sessions | WooCommerce creates a session for every visitor who touches the cart | Rows that accumulate in the database |
| Cart fragments | An AJAX request to admin-ajax.php on every page to update the cart counter | Extra load on every page, even the homepage |
| Product queries | Filtering, sorting, stock, variable prices, taxes | Queries heavier than fetching an article |
| Order tables | Orders and metadata accumulate over time | Slow admin queries (addressed by HPOS) |
| Store plugins | Payment gateways, shipping, taxes, marketing | Each one loads scripts and queries |
The practical difference in caching
On a blog, the page cache serves 95% of visits from a ready-made copy. In a store, a visitor who is actually shopping moves between pages that cannot be cached (the cart, checkout), so the load falls on the server. That is why stores need additional caching layers (object cache) and hosting with more resources than a blog with the same number of visits. For an in-depth understanding of the types of caching and when to use each, see caching types and when to use each.
How does hosting affect WooCommerce performance?
No cache can fix hosting that is unable to serve dynamic pages quickly. And since a store constantly generates uncached pages (every real shopping session), the server's strength shows up precisely at peak times: during campaigns and sales, when buyers pour in together.
The specifications that make a difference for stores
- Enough PHP workers. This is the most important setting for stores and the most overlooked. Each PHP worker serves one uncached request at a time. If you have two workers and five buyers reach the checkout page together, three of them wait in the queue. Stores need more workers than blogs because a larger share of their requests cannot be cached.
- NVMe disks for fast database reads, and a store runs a lot of queries.
- LiteSpeed or a well-tuned Nginx instead of traditional Apache: faster at serving PHP, and LiteSpeed has a built-in server-level cache (LSCache) with ready-made WooCommerce exclusions.
- A recent PHP version (8.2 or later). The jump from PHP 7.4 to 8.x can raise performance by 20–40% without touching a line of code, a free gain for logic-heavy stores.
- Enough memory (RAM) to run Redis for the object cache alongside PHP and the database.
Comparing hosting environments for a WooCommerce store
| Hosting type | TTFB at peak | PHP workers | Redis ready | Best for |
|---|---|---|---|---|
| Budget shared hosting | High/fluctuating | Few (2–3) | Usually not | A very small or test store |
| Shared hosting on LiteSpeed | Good | Medium | Sometimes | A new store with moderate traffic |
| Managed VPS | Very good | Depends on the setup | Yes (set up by you) | A growing store that wants control |
| Managed WordPress/WooCommerce | Excellent | Sufficient and tuned | Yes (preconfigured) | A critical store that wants performance without hassle |
If your store suffers from slowness at peak times, 503 errors or PHP worker queues, upgrading to an environment with dedicated resources may be the single biggest speed improvement. When comparing options, check for a tuned cache, WooCommerce exclusions, Redis, a recent PHP version and enough PHP workers.
How do you apply the right caching for WooCommerce? (The golden rule: exclude transactions)
Caching is the second-biggest gain after hosting, but in stores it is a double-edged sword: if you cache the wrong pages, you show one visitor another visitor's cart, an old price or a frozen checkout page. The decisive rule: always exclude transaction pages from the page cache.
The caching layers in a WooCommerce store
| Cache type | Stores | In the store | Required exclusion |
|---|---|---|---|
| Page cache | The complete ready-made HTML | The homepage, shop, product pages, blog | Exclude the cart/checkout/my account |
| Object cache (Redis) | Database query results | Speeds up all dynamic pages and the admin | No exclusion; always useful for stores |
| Opcode cache (OPcache) | Compiled PHP code | Eliminates recompiling PHP on every request | A server setting; not content-related |
| Browser cache | Static assets on the visitor's device | Images, CSS, JS, fonts | Cache-Control headers |
Which pages should be excluded from the page cache?
| Page | Why it is not cached | What happens if it is cached by mistake |
|---|---|---|
The cart (/cart/) | Content specific to each visitor's cart | The visitor sees someone else's cart or an old empty cart |
Checkout (/checkout/) | Sensitive order and payment data | A frozen page, a data leak or a failed payment |
My account (/my-account/) | The customer's dashboard and orders | Showing one user's account to another |
| The thank-you/order confirmation page | Unique order details | Showing the wrong order details |
| Dynamic search results | Different for every query | Irrelevant results |
Most major caching plugins exclude these pages automatically when they detect WooCommerce (WP Rocket and LiteSpeed Cache do this). But always check, especially if you have changed the default URLs of these pages. Here is an example of manual text exclusions if you need them:
# Paths that must not be cached in WooCommerce
/cart/
/checkout/
/my-account/
# Cookies that bypass the cache when present (active cart / session)
woocommerce_items_in_cart
woocommerce_cart_hash
wp_woocommerce_session_When any of the WooCommerce cookies is present (an active cart or a session), the caching plugin must bypass the cache and serve a live copy to that particular visitor, while new visitors without a cart continue to be served from the cached copy.
Object caching (Redis): the most important for stores
The page cache does not help dynamic pages, and a store has many of them. This is where object caching with Redis shines: it stores the results of heavy queries in memory, so instead of reading prices, stock and options from disk on every request, they are fetched from memory instantly. Its effect on the admin dashboard and on the cart and checkout pages is very large, and it can cut response time from seconds to fractions of a second.
To enable Redis: install a Redis server on your hosting (or enable it from the panel on managed hosting), then install a plugin such as Redis Object Cache and connect it. These are the typical wp-config.php settings:
// Enable the Redis object cache in wp-config.php
define( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_DATABASE', 0 );
// A unique prefix prevents cache collisions between several sites on the same Redis server
define( 'WP_CACHE_KEY_SALT', 'mystore_' );
// A short timeout so the site doesn't hang if Redis goes down
define( 'WP_REDIS_TIMEOUT', 1 );
define( 'WP_REDIS_READ_TIMEOUT', 1 );After saving, enable the object cache from the Redis Object Cache plugin page and click Enable Object Cache. Check that the status is Connected and that the hit rate rises with use.
Fragment caching
WooCommerce uses a "fragments" technique to update small parts of the page (such as the cart counter) without reloading the whole page. Some advanced caching plugins offer fragment caching for small dynamic parts inside a cached page, combining the speed of the page cache with the liveliness of the elements that change. Check whether your plugin supports this, but it is secondary compared with setting up transaction exclusions and enabling Redis.
What are cart fragments, and why might you disable them?
"Cart fragments" (WooCommerce Cart Fragments) is a feature that fires an AJAX request to admin-ajax.php on every page to update the cart counter and total in real time without reloading. It is useful, but it adds a heavy extra request (sometimes 100–500 milliseconds or more) even on pages that contain no cart at all, such as the homepage and blog posts. On limited hosting, it can be one of the biggest causes of invisible slowness.
When and how should you deal with them?
| Case | Suggested action |
|---|---|
| The homepage, blog and pages with no cart | Disable cart fragments on them |
| Shop and product pages | Keep them or optimize them (load on demand) |
| You want a cart counter that is always live | Don't disable them entirely; narrow their scope with a performance plugin |
| A simple store that doesn't show a floating cart counter | They can be disabled entirely and safely |
Many performance plugins (such as Perfmatters or Disable Cart Fragments) let you disable cart fragments on specific pages or entirely with a click. A simple code alternative to disable them on pages unrelated to the store (placed in a custom functionality plugin, not directly in the theme file):
// Disable cart fragments on pages unrelated to the store
add_action( 'wp_enqueue_scripts', function () {
if ( ! is_cart() && ! is_checkout() && ! is_account_page() ) {
wp_dequeue_script( 'wc-cart-fragments' );
}
}, 11 );After disabling them, test that adding products to the cart and the cart counter work as you expect on the pages where you left them enabled.
How do you optimize the WooCommerce database? (Sessions, orders, HPOS)
A store's database grows faster than a blog's: visitor sessions, abandoned carts, orders and their metadata, transients and revisions. This build-up gradually slows down queries and TTFB.
The autoload problem in wp_options
Every WordPress page automatically loads every row in wp_options marked autoload = yes. Some store plugins leave megabytes of data there that are loaded on every request, raising TTFB without you knowing. Check the size with Query Monitor or a direct query, and clean up large, useless rows:
-- The 20 largest rows loaded automatically on every page
SELECT option_name, LENGTH(option_value) AS size
FROM wp_options
WHERE autoload = 'yes'
ORDER BY size DESC
LIMIT 20;
-- Total autoload size (ideally under ~1 megabyte)
SELECT ROUND(SUM(LENGTH(option_value)) / 1024 / 1024, 2) AS autoload_mb
FROM wp_options
WHERE autoload = 'yes';Cleaning up accumulated sessions and transients
WooCommerce creates a session for every visitor who touches the cart, and these sessions and expired transients pile up. Tools such as WP-Optimize clean them up safely, or you can run the official WP-CLI command to clean up expired sessions:
# Clean up expired WooCommerce sessions via WP-CLI
wp wc tool run clear_expired_sessions --user=admin
# Delete expired transients
wp transient delete --expiredA periodic cleanup schedule for the store database
| Item | Accumulates because | Cleanup tool | Frequency |
|---|---|---|---|
| Expired WooCommerce sessions | A session for every visitor who touches the cart | WP-CLI / WP-Optimize | Weekly |
| Expired transients | A temporary cache that isn't always cleaned up | WP-CLI / WP-Optimize | Weekly |
| Product/post revisions | Every edit is saved | WP-Optimize + WP_POST_REVISIONS | Monthly |
| Old abandoned carts | Data from carts that were never completed | A cart recovery plugin / manual cleanup | Monthly |
| Bloated autoload | Plugins that write to wp_options | Inspection + manual cleanup | When you notice slowness |
| Optimizing tables (OPTIMIZE) | Fragmentation after deletion | WP-Optimize | After every major cleanup |
To limit the build-up of revisions, add to wp-config.php:
// Keep only the last 5 revisions for each product/post
define( 'WP_POST_REVISIONS', 5 );
// Empty the trash automatically every 7 days
define( 'EMPTY_TRASH_DAYS', 7 );Take a full backup before any database cleanup: a mistaken deletion can break the store, and a restore is the only safety net.
HPOS: high-performance order storage
The most important performance upgrade for the databases of modern stores is HPOS (High-Performance Order Storage), previously known as Custom Order Tables. Traditionally, WooCommerce stored orders in the wp_posts and wp_postmeta tables shared with posts and pages, which made order queries (search, filtering, reports) slow on large stores because they compete with all of the site's content.
HPOS moves orders into dedicated, indexed tables for orders only, so admin queries and order lists become clearly faster, especially with thousands of orders.
| Aspect | Legacy storage (posts) | HPOS (dedicated tables) |
|---|---|---|
| Where orders are stored | wp_posts + wp_postmeta | The dedicated wc_orders tables |
| Admin query speed | Slows down as content grows | Faster and stable |
| Indexing | Generic for all content types | Dedicated to orders |
| Compatibility | The old default | The default for new stores |
| Enabling | — | WooCommerce > Settings > Advanced > Features |
Enable HPOS from: WooCommerce > Settings > Advanced > Features > High-performance order storage. First make sure all your plugins are compatible with HPOS (most modern plugins are), work on a staging copy first, and take a backup before the switch.
How do you optimize a WooCommerce store's images and assets?
Stores are full of images: the main product image, the gallery, and the thumbnails on archive pages. Images are usually the heaviest element and the one with the most impact on LCP on product pages.
The basic rules for images
- Compress images with a plugin such as ShortPixel, Imagify or Smush. Moderate "lossy" compression cuts the size by 60–80% with no noticeable visual difference.
- Convert them to AVIF or WebP, which are much lighter than JPG/PNG at the same quality.
- Enable lazy loading for off-screen images, but exclude the main product image (the LCP element) from deferral, or it will appear late.
- Set the thumbnail dimensions in the Customizer's WooCommerce product image settings so it does not generate sizes larger than they are displayed.
Comparing image formats
| Format | Relative size | Quality | Support | Ideal use in a store |
|---|---|---|---|---|
| JPG | Baseline (100%) | Good | Full | A legacy fallback |
| PNG | Very large | Lossless + transparency | Full | Logos/images with a transparent background |
| WebP | ~30% lighter than JPG | Excellent | Almost full | The safe default for product images |
| AVIF | ~50% lighter than JPG | The best | Modern (good) | The optimal choice, with a WebP fallback |
A CDN for store assets
A content delivery network (CDN) distributes your static assets (product images, CSS, JS, fonts) to servers around the world, so content reaches the visitor from the nearest point and the load on your server is lightened. This is especially important for stores that show dozens of images on an archive page. Cloudflare (a strong free tier), Bunny CDN or QUIC.cloud, which integrates with LiteSpeed, are good options. Most caching plugins have a field for the CDN URL, so they rewrite asset URLs automatically.
Careful: cache only static assets (images/CSS/JS) through the CDN, not the dynamic HTML pages for the cart and checkout. Cloudflare's default setup does not cache HTML unless you enable an explicit page rule, and in that case you must exclude the transaction paths with the same rules as your page cache.
Store plugins and theme: where exactly is performance lost?
Plugins do weigh a store down, and stores are more exposed to this because store owners pile up plugins for payment gateways, shipping, taxes, marketing and reviews. The problem is not the number but the impact: one heavy plugin that loads scripts and queries on every page does more damage than five lightweight ones.
Recommended performance plugins for stores
| Plugin | Function | Note |
|---|---|---|
| LiteSpeed Cache | Page + object cache (on LiteSpeed) | Free, ready-made WooCommerce exclusions |
| WP Rocket | Page cache + JS deferral + optimizations | Paid, the easiest, detects WooCommerce automatically |
| Redis Object Cache | Connecting the object cache to Redis | Essential for dynamic stores |
| Perfmatters | Selectively disabling cart fragments + scripts | Fine control over each page's assets |
| ShortPixel / Imagify | Image compression + AVIF/WebP | Essential for product images |
| WP-Optimize | Cleaning up the database and sessions | Scheduling periodic cleanups |
| Query Monitor | Diagnosing slow queries and plugins | For development only; don't leave it enabled for visitors |
How should you handle plugins and the theme?
- Choose a lightweight, WooCommerce-compatible theme such as Storefront, Astra, GeneratePress or Kadence, instead of bloated "multipurpose" themes.
- Delete unused plugins instead of just deactivating them (to clean up their data).
- Load plugin assets only where they are used: disable the reviews plugin's script on pages where reviews don't appear, and a payment gateway's script outside the checkout page, with a plugin such as Perfmatters.
- Diagnose the resource-hungry plugin with Query Monitor, which shows each plugin's time and queries.
Core Web Vitals for WooCommerce stores
Search engines measure page experience through three metrics (Core Web Vitals) from real user data, and they are an actual ranking signal:
| Metric | Measures | Good target | Its challenge in a store |
|---|---|---|---|
| LCP | Time until the largest visible element appears | < 2.5 seconds | A heavy main product image + uncached TTFB |
| INP | Interaction responsiveness (click/type) | < 200 milliseconds | Plugin JavaScript + cart fragments + filters |
| CLS | Visual layout stability | < 0.1 | Product images without dimensions + late-loading sale badges |
Where do the challenges show up on store pages?
- The product page: LCP is usually the product image; compress it, convert it to AVIF, exclude it from lazy loading, and add
fetchpriority="high". INP is affected by the gallery and variation scripts. - The archive/shop page: many thumbnails; enable lazy loading for what is below the fold, and set dimensions to keep CLS stable.
- The cart and checkout: not cached, so the biggest factor here is server speed (hosting + Redis), not front-end optimizations.
Filtering and search: the heaviest query in your store that nobody sees
This is the performance problem store owners overlook most, because it doesn't show up when measuring the homepage or a product page; it strikes when the visitor actually starts shopping.
When a visitor filters by "Color: blue," "Size: L" and "Price: under 500," the store does not read a ready-made list; it builds a compound query on the fly that joins the products table with multiple metadata entries and calculates the result from scratch. And every combination of filters is a different URL: ten colors × five sizes × four price ranges = two hundred pages, each with its own query. No cache covers them all, and no visitor requests the same combination twice.
The double result: constant pressure on the database on one hand, and a practically infinite crawl surface that search engines devour on the other.
| Symptom | Most likely cause | Remedy |
|---|---|---|
| Slowness when applying any filter | A compound query built on the fly | Filtering based on lookup tables, not raw metadata |
| CPU spikes with few visitors | Crawlers combing through filter combinations | Block indexing of filter URLs and limit crawling |
| A slow category page without filtering | A large number of products on the page | Reduce products per page and enable real pagination |
| Sorting by price is particularly slow | Sorting on an unindexed field | Rely on the price lookup table |
Three practical steps, in order:
- Make sure the lookup tables are up to date. WooCommerce keeps compact tables for prices, stock and ratings alongside the original metadata, and they are far faster for filtering and sorting. If their sync breaks (which is common after a bulk product import), the store goes back to the slow query without anyone telling you. Rebuild them from the WooCommerce status tools after any large import.
- Block indexing of filter URLs. Add a rule that prevents crawling of URLs that carry filter parameters. Without it, search engines generate thousands of requests against your heaviest query and spread the strength of the category page across endless copies of it. See HTTP security headers to configure what is sent with these pages.
- Limit the number of filters shown. Every extra filter multiplies the combinations. Show what customers actually use, not every attribute in the store.
Action Scheduler: the queue that silently eats your CPU
WooCommerce defers much of its work to a background task queue: stock sync, emails, updating the lookup tables, and the tasks of plugins tied to it. In a healthy store, the queue is processed and cleaned up. In a neglected store, it piles up without limit, until it exceeds hundreds of thousands of rows.
The telltale symptom: high, continuous CPU usage with no increase in visitors, and slowness in the admin dashboard that is worse than on the front end. The reason is that every run of the queue scans a huge table looking for due tasks.
Check it first from the scheduled actions page in the WooCommerce dashboard: look at the number of completed and failed actions. Completed actions should be cleaned up automatically after a month; if you find tens of thousands of them, the cleanup is broken. Failed ones are more dangerous: an action that fails and is retried endlessly creates a loop that constantly consumes CPU; look for its cause instead of just deleting it, because it will come back.
Then make sure the queue runs from a real scheduled task on the server, not from store visits. Relying on visits means a quiet store never runs its tasks, so they pile up, while a busy store runs them at the expense of its own visitors' speed; see the cron jobs guide.
Products with many variations: when a feature turns into a burden
A product with ten variations is not a problem. A product with two hundred variations (sizes × colors × materials) loads the data for every combination into its page all at once, before the visitor has chosen anything: the price, stock, image and SKU of each one. So the page balloons to hundreds of kilobytes of data alone, before any image.
The practical rule: anything over fifty variations for a single product calls for a rethink. The solution is often to split the product into separate products by the largest attribute (one product per material, for example), so each page gets smaller and becomes easier to index at the same time. See WooCommerce variable products to build the right structure from the start.
How do you measure WooCommerce performance before and after?
Don't guess; measure. And the golden rule: change one thing, measure its impact, then move on. Measure the store's three pages of different natures together: a product page (cached), the archive page, and the cart/checkout page (not cached).
| Tool | Measures | Data type | Best for |
|---|---|---|---|
| PageSpeed Insights | Core Web Vitals + diagnostics | Lab + field (CrUX) | A quick assessment of product/archive pages |
| Search Console (CWV report) | The performance your real visitors experience | Real field data | Tracking the long-term impact |
| GTmetrix | Loading waterfall + scores | Lab | Analyzing the resources of a specific page |
| Query Monitor | Queries + plugin time + autoload | Inside WordPress | Diagnosing a slow checkout/admin from the inside |
| The Network panel (DevTools) | Live requests and sizes | Lab | Tracking a slow cart-fragments or admin-ajax request |
The important difference: PageSpeed and GTmetrix measure from the outside, while Query Monitor measures from the inside, revealing which plugin or query is eating time on the checkout page. To diagnose real slowness you need both: the external one to say "there is slowness," and the internal one to say "it is right here." And for uncached pages (cart/checkout), watch TTFB in particular; a high value points to the server and the object cache, not the front end.
Troubleshooting: a slow checkout, a slow admin and CPU usage
| Problem | Likely cause | Fix |
|---|---|---|
| The checkout page is very slow | Not cached + weak hosting/Redis disabled + a slow payment gateway | Enable Redis, upgrade PHP workers, diagnose the gateway with Query Monitor |
| The admin dashboard (wp-admin) is slow | Legacy order storage (no HPOS) + heavy Heartbeat + Redis disabled | Enable HPOS, tune Heartbeat, enable Redis Object Cache |
| High CPU usage | Cart fragments on every page + a heavy plugin + bot crawling | Disable cart fragments where not needed, isolate the plugin, block bots |
A slow/repeated admin-ajax.php | Cart fragments + Heartbeat + a plugin that calls AJAX a lot | Reduce cart fragments and Heartbeat, diagnose the AJAX calls |
| The cart doesn't update / appears empty | The page cache is caching the cart by mistake | Exclude /cart/, /checkout/ and WooCommerce cookies from the cache |
| High TTFB on every page | Slow hosting + old PHP + huge autoload + no OPcache | Upgrade hosting and PHP, clean up autoload, enable OPcache |
| Slow order management queries | Orders in wp_posts without HPOS | Enable HPOS after testing compatibility |
| High CLS on product pages | Images without dimensions + late-loading sale badges | Add width/height, reserve space for the badges |
A method for isolating the cause of a slow checkout
The checkout page is not cached, so its slowness usually comes from the server or a payment gateway. The reliable method: open Query Monitor on the checkout page in a staging environment, and look at the plugins ranked by execution time and at the database queries. If a payment gateway shows up taking time on an external call, the fix may be tuning its timeout or an alternative. If TTFB itself is high before any plugin, the problem is the server/Redis. Always work on a staging copy, not the live store.
A practical plan to speed up your store today
- Measure a baseline on a product page, an archive page and the cart page, and record LCP, INP, CLS and TTFB.
- Upgrade PHP to 8.2 or later after testing compatibility on staging, an immediate free gain.
- Enable one caching plugin (LiteSpeed Cache on LiteSpeed, otherwise WP Rocket) and check that the cart/checkout/my account are excluded.
- Enable the Redis object cache and connect it with the Redis Object Cache plugin, the biggest impact on dynamic pages.
- Enable HPOS to speed up order management, after confirming plugin compatibility.
- Disable cart fragments on pages that don't need them (homepage/blog).
- Optimize images with compression and AVIF/WebP conversion, starting with the main product image, and exclude it from lazy loading.
- Clean up the database (after a backup): expired sessions, transients, revisions, and check autoload.
- Connect a CDN for static assets only, and make sure transaction pages are excluded.
- Measure again and compare with the baseline, and follow the real impact in the Core Web Vitals report in Search Console.
The rule across every step: change one thing, measure, keep it or roll it back, then move on; that way you build an improvement whose causes you understand, rather than piling up blind settings.
Common mistakes that slow down WooCommerce stores
- Expecting the page cache to be enough, and forgetting that the cart and checkout are not cached and depend on the server's power and Redis.
- Caching transaction pages by mistake, so one visitor's cart appears to another or the checkout page freezes.
- Neglecting the Redis object cache even though it matters most for dynamic pages and store administration.
- Leaving cart fragments running on every page, raising CPU usage and load time.
- Ignoring HPOS, so order management stays slow as the store grows.
- Piling up heavy payment gateway, shipping and marketing plugins without measuring their impact.
- Uploading huge product images without compressing them or converting them to a modern format.
- Neglecting to clean up accumulated sessions and transients and a bloated autoload.
- Choosing shared hosting with few PHP workers for a store that expects crowds at peak times.
- Changing many things at once without measuring before and after, so you don't know what helped.
Conclusion
Speeding up WooCommerce is an ordered equation that respects the dynamic nature of a store: hosting with enough PHP workers + a page cache that excludes the cart/checkout/my account + a Redis object cache + HPOS for order storage + optimized images and a CDN for assets + disabling cart fragments where they are not needed + cleaning up sessions and the database. Tackle the highest-impact items first, always exclude transaction pages from the cache, measure the store's pages of different natures with one external tool and one internal one, and change one thing at a time. The result: faster product pages, a smooth checkout, a light admin, better Core Web Vitals and higher sales.
Frequently asked questions
Why is a WooCommerce store slower than an ordinary WordPress blog? Because many of its pages are personalized for each visitor and cannot be cached (cart, checkout, my account), it creates a session for every shopper, it fires cart fragments via AJAX on every page, and its products query changing prices, stock and taxes. All of this puts a bigger load on the server than a blog serving static content that can be cached entirely.
Which pages should be excluded from the cache in WooCommerce?
Transaction pages and personalized content: the cart (/cart/), checkout (/checkout/), my account (/my-account/) and the order confirmation page, plus dynamic search results. Caching them by mistake shows one visitor's cart to another or freezes the checkout page. Most caching plugins exclude them automatically when they detect WooCommerce, but always check.
Do I need a Redis object cache for my store? Yes, if your store has more than a small number of products and visits. An object cache with Redis stores query results in memory, noticeably speeding up dynamic pages, the admin dashboard, and the cart and checkout pages, which are exactly the pages that page caching does not help. Many managed hosts enable it by default.
What is HPOS and when should I enable it?
HPOS (High-Performance Order Storage) moves WooCommerce orders from the shared wp_posts/wp_postmeta tables to dedicated, indexed order tables, making order management and reports faster, especially with thousands of orders. Enable it from WooCommerce > Settings > Advanced > Features, after confirming your plugins are compatible and testing it on a staging copy with a backup.
What are cart fragments, and should I disable them?
A feature that fires an AJAX request to admin-ajax.php on every page to update the cart counter in real time. It is useful, but it adds load even to pages without a cart. Disable it on pages that don't need it (the homepage and blog) to keep the cart counter on store pages, or disable it entirely if you don't have a floating cart counter.
What is the biggest factor in a WooCommerce store's speed? Suitable hosting with enough PHP workers, because a large share of a store's requests cannot be cached (every real shopping session goes through the cart and checkout). No caching plugin can make up for hosting that is unable to serve dynamic pages quickly, especially at peak times. Start with strong hosting, then add caching and Redis on top.
Why is the checkout page slow while the rest of the store is fast? Because the checkout page is not cached and is built from scratch for each visitor, and it may call an external payment gateway. Its common causes: slow hosting, a disabled object cache, or a payment gateway that responds slowly. Diagnose it with Query Monitor on a staging copy: if TTFB is high, the problem is the server/Redis; if a gateway shows up taking time, the fix lies in configuring it.
How do I optimize product images without losing quality? Compress them with a plugin such as ShortPixel or Imagify, convert them to AVIF/WebP (30–50% lighter at the same quality), enable lazy loading but exclude the main product image (the LCP element), and set the thumbnail dimensions in WooCommerce settings so it does not generate sizes larger than they are displayed.
Does having many plugins slow down my store? What slows things down is a plugin's impact, not their number. Payment gateway, shipping, tax and marketing plugins can load scripts and queries on every page. Choose lightweight plugins, delete unused ones, load each plugin's assets only where they are used with a tool such as Perfmatters, and diagnose the heavy ones with Query Monitor.
Can I use a CDN with WooCommerce safely? Yes, but cache only static assets through the CDN (product images, CSS, JS, fonts) to speed up their loading and lighten the load on your server. Don't cache the dynamic HTML pages for the cart and checkout through a CDN; and if you enable HTML caching at the edge (such as Cloudflare), exclude the transaction paths with the same rules as your page cache.
How do I clean up my store's database safely?
Take a full backup first, then use a trusted tool such as WP-Optimize or WP-CLI commands to clean up expired WooCommerce sessions, transients, excess revisions and spam comments, and check the autoload size in wp_options. Avoid deleting directly from the tables by hand unless you know exactly what you are doing, and work on staging when in doubt.
Sources
Frequently asked questions
Why is a WooCommerce store slower than an ordinary WordPress blog?
Because many of its pages are personalized for each visitor and cannot be cached (cart, checkout, my account), it creates a session for every shopper, it fires cart fragments via AJAX on every page, and its products query changing prices, stock and taxes. All of this puts a bigger load on the server than a blog serving static content that can be cached entirely.
Which pages should be excluded from the cache in WooCommerce?
Transaction pages and personalized content: the cart (/cart/), checkout (/checkout/), my account (/my-account/) and the order confirmation page, plus dynamic search results. Caching them by mistake shows one visitor's cart to another or freezes the checkout page. Most caching plugins exclude them automatically when they detect WooCommerce, but always check.
Do I need a Redis object cache for my store?
Yes, if your store has more than a small number of products and visits. An object cache with Redis stores query results in memory, noticeably speeding up dynamic pages, the admin dashboard, and the cart and checkout pages, which are exactly the pages that page caching does not help. Many managed hosts enable it by default.
What is HPOS and when should I enable it?
HPOS (High-Performance Order Storage) moves WooCommerce orders from the shared wp_posts/wp_postmeta tables to dedicated, indexed order tables, making order management and reports faster, especially with thousands of orders. Enable it from WooCommerce > Settings > Advanced > Features, after confirming your plugins are compatible and testing it on a staging copy with a backup.
What are cart fragments, and should I disable them?
A feature that fires an AJAX request to admin-ajax.php on every page to update the cart counter in real time. It is useful, but it adds load even to pages without a cart. Disable it on pages that don't need it (the homepage and blog) to keep the cart counter on store pages, or disable it entirely if you don't have a floating cart counter.
What is the biggest factor in a WooCommerce store's speed?
Suitable hosting with enough PHP workers, because a large share of a store's requests cannot be cached (every real shopping session goes through the cart and checkout). No caching plugin can make up for hosting that is unable to serve dynamic pages quickly, especially at peak times. Start with strong hosting, then add caching and Redis on top.
Why is the checkout page slow while the rest of the store is fast?
Because the checkout page is not cached and is built from scratch for each visitor, and it may call an external payment gateway. Its common causes: slow hosting, a disabled object cache, or a payment gateway that responds slowly. Diagnose it with Query Monitor on a staging copy: if TTFB is high, the problem is the server/Redis; if a gateway shows up taking time, the fix lies in configuring it.
How do I optimize product images without losing quality?
Compress them with a plugin such as ShortPixel or Imagify, convert them to AVIF/WebP (30–50% lighter at the same quality), enable lazy loading but exclude the main product image (the LCP element), and set the thumbnail dimensions in WooCommerce settings so it does not generate sizes larger than they are displayed.
Does having many plugins slow down my store?
What slows things down is a plugin's impact, not their number. Payment gateway, shipping, tax and marketing plugins can load scripts and queries on every page. Choose lightweight plugins, delete unused ones, load each plugin's assets only where they are used with a tool such as Perfmatters, and diagnose the heavy ones with Query Monitor.
Can I use a CDN with WooCommerce safely?
Yes, but cache only static assets through the CDN (product images, CSS, JS, fonts) to speed up their loading and lighten the load on your server. Don't cache the dynamic HTML pages for the cart and checkout through a CDN; and if you enable HTML caching at the edge (such as Cloudflare), exclude the transaction paths with the same rules as your page cache.
How do I clean up my store's database safely?
Take a full backup first, then use a trusted tool such as WP-Optimize or WP-CLI commands to clean up expired WooCommerce sessions, transients, excess revisions and spam comments, and check the autoload size in wp_options. Avoid deleting directly from the tables by hand unless you know exactly what you are doing, and work on staging when in doubt.