woocommerce-performance

Diagnose and optimize slow WooCommerce stores through query tuning, Redis caching, and database cleanup.

3|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill woocommerce-performance-tomtoto757
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: woocommerce-performance
Source: https://github.com/tomtoto757/ecomm-ai-team/tree/main/skills/platform-integrations-infrastructure/finsilabs/platform-woocommerce/woocommerce-performance
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill woocommerce-performance-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? WooCommerce stores slow down under traffic due to un-indexed meta queries, missing object caches, bloated wp_options autoload data, and unmaintained session and log tables. This Skill provides a systematic workflow to profile bottlenecks and apply targeted fixes. ## Core Features & Use Cases - Query Profiling and Optimization: Identify slow and duplicate queries with Query Monitor and MySQL slow query logs, add missing indexes, and migrate orders to HPOS tables. - Redis Object Caching: Configure a persistent Redis object cache with correct wp-config.php constants, TTLs, and exclusions for volatile session data. - Scheduled Database Maintenance: Automate daily cleanup of expired sessions, transients, and logs using Action Scheduler with batched DELETE operations. - Use Case: A store with 4 million rows in wp_woocommerce_sessions and CPU spikes during checkout uses this Skill to enable Redis, clean up tables in batches, and eliminate N+1 product queries. ## Quick Start Ask the AI to diagnose why your WooCommerce store is slow and configure Redis object caching with scheduled database cleanup.

Frequently Asked Questions about woocommerce-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I speed up a slow WooCommerce store?▼

Start by installing Query Monitor to identify slow and duplicate queries, then enable a Redis persistent object cache, which typically cuts database load by 60-80%. Follow up with HPOS migration and scheduled cleanup of sessions and transients.

How to configure Redis object cache for WooCommerce?▼

Install the redis-cache plugin via WP-CLI, run wp redis enable, and define WP_REDIS_HOST, PORT, DATABASE, TIMEOUT, and MAXTTL constants in wp-config.php. Exclude volatile groups like wc_session_id and counts via WP_REDIS_IGNORED_GROUPS to prevent stale checkout data.

Does WooCommerce HPOS improve performance?▼

Yes, High-Performance Order Storage moves order data from wp_postmeta into dedicated indexed tables, eliminating a major query bottleneck on WooCommerce 7.1 and later. Audit plugins for direct get_post_meta order calls before migrating.

Why is my wp_woocommerce_sessions table so large?▼

The sessions table accumulates abandoned guest and bot sessions when no cleanup routine exists. Schedule a daily Action Scheduler job that deletes sessions older than 48 hours in batches of 5000 rows to avoid table locks.

How do I fix N+1 queries in WooCommerce product loops?▼

Replace per-product wc_get_product() calls inside loops with a single wc_get_products() query using the include parameter. Combine this with fragment caching of rendered HTML using wp_cache_set with a defined group and TTL.

Why is Redis not reducing MySQL queries on my store?▼

A low cache hit rate usually means keys are invalidated too aggressively or TTLs are too short. Check the hit rate in Query Monitor and verify that volatile groups are excluded rather than frequently flushed.