Skip to content

WooCommerce performance tuning on cPanel — what actually moves the needle

A senior-engineer view of WooCommerce performance tuning on cPanel — object cache, query optimization, image handling, and Action Scheduler load — with the changes that produce real measurable wins.

Most WooCommerce performance content is a list of plugins to install. The plugins help less than the configuration choices. The biggest single performance lift on a struggling Woo site is usually adding a real object cache. The next biggest is fixing the autoloaded options bloat. Page cache is third. Image optimization is helpful but rarely the limiting factor.

What’s happening

WooCommerce does a lot more database work per request than typical WordPress. Cart and session state, product variations, taxes, shipping rules, payment gateway introspection, and Action Scheduler tasks all consume queries. Without an object cache, every page load re-runs many of the same queries. With LiteSpeed Cache or W3 Total Cache as page cache, you cache logged-out users but still pay full cost on logged-in shopping flows — exactly the flows that drive revenue.

How to verify

wp plugin list --name=woocommerce
wp plugin list --name=redis-cache --status=active
wp db query "SELECT option_name, LENGTH(option_value) AS size FROM wp_options WHERE autoload = 'yes' ORDER BY size DESC LIMIT 20"
wp action-scheduler queue-list

autoload rows over 500KB will appear in this list. WooCommerce often accumulates large autoloaded options over time, especially with payment gateways, tax tables, and shipping rules. action-scheduler queue-list shows backlog — anything over a few thousand pending is a sign cron isn’t keeping up.

The fix

The configuration changes that consistently produce measurable wins:

  1. Object cache with Redis. This is the single biggest change. Without it, WooCommerce hits the database for the same wp_options, wp_postmeta, and session data on every cart and checkout request. With it, those become microsecond-level cache hits. Setup is covered separately.

  2. Disable WP-Cron, replace with system cron at 1-minute interval. Action Scheduler relies on WP-Cron firing to process queued actions. On a busy Woo site, WP-Cron’s “fire on visitor request” model is too irregular. System cron every minute means the Action Scheduler queue stays drained.

  3. Reduce autoloaded options bloat. The query above shows you the candidates. The pattern:

    • WooCommerce’s _transient_woocommerce_shipping_rates_* can grow huge if not pruned. The transient is fine; the autoload is wrong.
    • Old payment gateway transients from plugins no longer in use.
    • Multi-vendor commission tables on a non-multi-vendor site.

    Toggle them to autoload = 'no':

    wp option set option_name '...' --autoload=no
  4. Database table sizes. wp_postmeta, wp_options, wp_woocommerce_log (if active), and wp_actionscheduler_actions are the top four to watch:

    wp db query "SELECT table_name, table_rows, ROUND(data_length/1024/1024,2) AS mb FROM information_schema.tables WHERE table_schema = DATABASE() ORDER BY data_length DESC LIMIT 10"

    actionscheduler_actions over 100k rows means historical actions aren’t being cleaned. WooCommerce > Status > Tools > Delete WooCommerce log entries; or schedule cleanup via Action Scheduler retention.

  5. Image handling. Use WebP/AVIF via LiteSpeed’s image optimization or a dedicated plugin (Imagify, ShortPixel). Disable WordPress’s auto-generated image sizes that you don’t actually use — every upload becomes 8+ files by default. Edit functions.php or use a plugin like “Disable Generate Thumbnails” to limit to the sizes the theme actually uses.

  6. Disable storefront features you don’t need. WooCommerce shows the cart icon in the header by default with a fragment refresh that fires on every page. If you don’t need it, disable WooCommerce cart fragments — saves an AJAX request per page.

  7. Database indexes on heavy meta queries. If a custom field is queried frequently in product listings or filters, add a database index on it via:

    wp db query "ALTER TABLE wp_postmeta ADD INDEX (meta_key, meta_value(20))"

    Be careful — too many indexes slow writes. Add only what query profiling shows is needed.

  8. PHP-FPM tuning. Increase pm.max_children if you’re running out of workers under peak load. Set pm.start_servers and pm.min_spare_servers based on actual concurrency. cPanel exposes some of these in MultiPHP Manager; deeper tuning needs to edit the FPM pool config directly.

For Woo sites where this needs sustained attention, Stack Harbor handles it under enterprise WordPress hosting.