What matters
Load time isn't a feeling, it's measurable. Use the metrics from Google's Core Web Vitals. Focus on three of them: Largest Contentful Paint, Interaction to Next Paint, Cumulative Layout Shift.
Targets: LCP < 2,5 s, INP < 200 ms, CLS < 0,1. This lets you set priorities and see progress.
Quick diagnosis in 10 minutes
- PageSpeed test: Measure the home page, a category page, a product detail page and the checkout. Note LCP, INP, CLS and TTFB.
- Waterfall analysis: Check the first 10 requests. Look for heavy images, fonts and render-blocking JS.
- Query Monitor: Look for slow DB queries, hooks and HTTP calls to external services.
- WooCommerce status: Under System Status, you'll find HPOS, database, cron and queues.
- Server facts: PHP version, OPcache enabled, HTTP/2 or HTTP/3, Brotli or gzip.
Top causes of slow WooCommerce stores

- No object-level caching. Lots of repeated DB reads.
- Postmeta bottleneck for orders. Orders are stored in
wp_postsandwp_postmeta, which slows things down. - Cart fragments run on every page and keep the cache warm.
- Oversized images, no modern formats, wrong dimensions.
- Too many plugins and hooks on production pages.
- External scripts block rendering or wait for consent.
- Heavy theme functions on PLP and PDP. Variant logic in the frontend.
- Action Scheduler is overflowing, cron runs too rarely.
- Autoloaded options are bloated.
- No edge caching, no CDN, wrong TTLs.
Fixes that work right away
1) Enable a persistent object cache
Use Redis as a persistent object cache. This reduces DB load for repeated queries. Install the “Redis Object Cache” plugin, connect your instance, check the hit rate and check preloading. Watch out for groups you don't want to cache, such as dynamic options in the checkout. This often lowers your TTFB significantly.
2) Use High-Performance Order Storage
Enable HPOS in WooCommerce. Orders are stored in dedicated tables optimized for e-commerce. This takes load off wp_postmeta and speeds up queries in the admin and frontend. Check plugin compatibility, sync legacy data, then switch over. New stores often have WooCommerce High-Performance Order Storage enabled already.
3) Load cart fragments only where needed
Cart fragments update the mini cart via AJAX. In the past, they ran on too many pages and prevented full-page caching. Disable them on pages without a mini cart. Free up server-side caching. Keep only the mini cart dynamic, not the entire shop. Learn more under Using cart fragments selectively.
4) Modernize images consistently
Use WebP or AVIF, serve responsive sizes, and lazy-load everything below the fold. Use an image pipeline or an image CDN that adjusts format, size and quality dynamically. Reduce the LCP image size to what is necessary. Avoid huge hero sliders. See also Use modern image formats on “Chrome for Developers”.
5) Tame JavaScript
- Remove unused libraries.
- Split bundles and load only what the page needs.
- Use
deferfor non-critical JS. - Avoid a jQuery domino effect on every page.
- Reduce DOM nodes and cut down on layout thrashing.
6) Slim down CSS
- Generate critical CSS for the above-the-fold area.
- Delay non-critical CSS and use
mediaandpreloadwisely. - Remove unused utility classes and framework bloat.
7) Edge caching and CDN
Serve static assets from the edge. Set clean cache headers. Serve HTML for category and product pages from the full-page cache wherever possible. Make exceptions for the cart and checkout. Use stale-while-revalidate to absorb traffic spikes.
Server, PHP, database
- PHP 8.1 or 8.2 with OPcache; JIT is not required. Allocate enough RAM for OPcache and the realpath cache.
- Enable HTTP/2 or HTTP/3. Prefer Brotli over gzip where available.
- MySQL/MariaDB: InnoDB, tuned buffer sizes, log slow queries. Check indexes.
- A separate Redis service, not on the same instance as the database, when load is high.
- Keep-alive and TLS session resumption enabled.
WooCommerce specifics that cost you time
Product listings and search
- No expensive taxonomy filters without caching. Use pre-indexed solutions or search services with facets.
- Use transient caches for frequently used lists and clear them selectively after product changes.
Variations
- Load attribute data server-side and cache the combinations. Check whether you can reduce the number of variations.
- Avoid JS cascades that recalculate on every selection.
Checkout
- Limit the number of payment and shipping plugins. Check timeouts on API calls. Shorten requests with keep-alive.
- Disable everything the checkout does not need, such as social scripts.
Action Scheduler
- Clean up old jobs. Schedule cron more frequently when queues grow.
- Monitor webhooks, retry counters and API errors. This saves time in the checkout.
Autoloaded options
- Check
autoloadinwp_options. Keep the total small. - Store large configurations without autoload. Keep them under version control.
Reducing frontend load systematically
Fonts
- Use variable fonts sparingly. Preload important weights. Define fallbacks.
- Prevent layout shifts with
font-display: swapand defined sizes.
Images
- Set
srcsetandsizes. No 4K images on mobile devices. - Use placeholders to avoid CLS. Set width and height.
Third-party
- Load the tag manager once consent has been given. Delay heatmaps, ads and chats.
- Measure every third-party service. Remove anything that doesn't pay off.
In practice: concrete high-impact steps
- Use Redis: Install Redis, activate the plugin, check the connection, warm the object cache. Monitor the hit rate. Make it persistent.
- Enable HPOS: In the WooCommerce settings, enable the feature, sync the tables, test compatibility, switch over.
- Rein in cart fragments: Load the mini cart only where it is visible. Otherwise remove it or load it on an event.
- Set up an image pipeline: WebP or AVIF, responsive sizes, quality 60 to 80, sharp scaling. Optimize the LCP image specifically.
- Clean up JS: Remove unused plugins. Split vendor bundles. Defer everything that isn't critical.
- Enable edge caching: Use a CDN and cache HTML on catalog pages and PDPs. Exclude checkout and account pages.
- Clean up Action Scheduler: Review failed jobs, fix the root causes, adjust the interval.
- Check autoload: Identify large entries and set autoload to
nowhere it isn't needed. - Check DB indexes: Make sure your tables, especially the HPOS tables, are properly indexed.
- Set up monitoring: Lighthouse in CI, CrUX data, on-site measurement for INP and LCP. You can only improve what you measure.
Sample configurations and snippets
wp-config.php, performance basics
// OPcache warmhalten
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');
// Redis Vorgaben, Beispiel
// define('WP_REDIS_HOST', '127.0.0.1');
// define('WP_REDIS_PORT', 6379);
// define('WP_REDIS_TIMEOUT', 1.0);
// define('WP_REDIS_READ_TIMEOUT', 1.0);
// Heartbeat drosseln
// add_filter('heartbeat_settings', function($s){ $s['interval']=60; return $s; });
Nginx, long cache lifetimes for static assets
location ~* .(?:css|js|woff2?|ttf|eot|png|jpg|jpeg|gif|svg|webp|avif)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
HTML, critical hints
<link rel="preload" href="/fonts/brand.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/images/hero-lcp.webp" as="image">
<script defer src="/assets/app.js"></script>
Checklist for your next release
- HPOS enabled, no sync errors.
- Redis connected, object cache hit rate > 90 percent on a warm cache.
- Cart fragments only on pages with a visible mini cart.
- LCP image optimized, size matches the viewport.
- JS deferred, no render-blocking inline script.
- CDN active, fast TLS, Brotli enabled.
- Action Scheduler clean, webhooks stable.
- Total autoload size in the green.
- Lighthouse score stable, CrUX shows green values.
Common misconceptions
- "More RAM will fix it": Only helps if you know where the problem is.
- "A plugin will handle it": Tools help, but architecture is what delivers speed.
- "A CDN is enough": Without clean HTML output, the first byte stays slow.
- "INP doesn't matter": Poor response times slow users down.
How to measure progress correctly
- Define target values for LCP, INP and CLS per page type.
- Set test profiles: mobile 4G, desktop, first visit, repeat visit.
- Collect real user data. Compare it with lab data. Document your changes.
- Add checks to CI. Fail builds when thresholds are exceeded.
Your next step
Implement two items today. Start with HPOS and Redis if both fit your setup. Or tackle cart fragments and the LCP image. Share your results: which page benefited most, and why.
Discussion
Who wrote this article
Storetown Media is a WooCommerce agency based in Tornesch in the Pinneberg district, about twenty minutes outside Hamburg. We have been building websites and online shops since 2012 – we started with company websites and ordering systems, and the shops came along gradually. The work described here – cleaning up the database, serving images as WebP, trimming plugins, layering caching correctly – is part of our day-to-day business. If your shop is slow and you'd rather not track down the cause yourself, we'll take a look.






















{% endif %}
{% if title and title != "" %}
{{ title }}
{% endif %}
{% if excerpt and excerpt != "" %}