Skip to content
10% off any project with promo code10% off with code

WooCommerce with 50k+ Products: What to Do When It Crawls

Contents
  1. Typical symptoms
  2. 1. Redis object cache
  3. 2. Database cleanup
  4. 3. PHP-FPM pool tuning
  5. 4. Slow query optimization
  6. Result
Published
Reading time
~1 min
Views
121
Reader rating
11 reviews
Author
Yevhen Fostenko
Senior Backend & DevOps Engineer
WooCommerce with 50k+ Products: What to Do When It Crawls Article
Need help with your website?
Describe the task on Telegram — I will assess it and suggest where to start. Reply within a day.
Message on Telegram
Free consultation and estimate. I reply quickly.

WooCommerce is fine on a small shop, but once the catalogue passes 10–50k products the problems start. Here are the usual causes and what to do about them.

Typical symptoms

  • The WP admin hangs on the products screen
  • Slow cart and checkout
  • 503 errors under load
  • MySQL sitting at 100%+ CPU

1. Redis object cache

Install Redis and the Redis Object Cache plugin. It removes the repeated database hits for transients, options and WooCommerce objects. Expect a 40–60% improvement.

2. Database cleanup

WooCommerce accumulates thousands of transients and autoloaded options. Clean them out regularly with WP-CLI:

wp transient delete --all
wp db optimize

3. PHP-FPM pool tuning

Give WooCommerce its own PHP-FPM pool with pm.max_children sized against available RAM. The formula: (total RAM minus system) divided by the average PHP process footprint.

4. Slow query optimization

The heaviest WooCommerce queries hit wp_postmeta and wp_options. Use the Query Monitor plugin to find the ones costing you.

Result

A 50k-product store after this work: LCP from 5.8 s down to 1.4 s, checkout time cut by 70%.

Tags: wordpresswoocommercehigh-loadredisoptimization
Need help with your website?
Describe the task on Telegram — I will assess it and suggest where to start. Reply within a day.
Message on Telegram
Free consultation and estimate. I reply quickly.

Reader reviews

4.0
Write a review