Ahosting Logo
Knowledge Base

WooCommerce Speed Optimization Tips

A fast WooCommerce store means better user experience, higher conversions, and improved SEO rankings. Here are proven optimization techniques.

1. Use LiteSpeed with LSCache

Ahosting WooCommerce plans include LiteSpeed web server with LSCache - the fastest WordPress caching solution available.

  1. Install the LiteSpeed Cache plugin
  2. Go to LiteSpeed Cache > Cache
  3. Enable Enable Cache
  4. Go to Page Optimization and enable CSS/JS minification

2. Optimize Images

Product images are often the largest files on your store.

  • Use WebP format instead of JPEG/PNG
  • Compress images before uploading
  • Enable lazy loading for images below the fold
  • Recommended plugins: ShortPixel, Smush, Imagify

3. Use a CDN

A Content Delivery Network serves static files from servers closer to your visitors.

  • Cloudflare: Free tier available, easy setup
  • QUIC.cloud: Designed for LiteSpeed Cache
  • BunnyCDN: Affordable and fast

4. Optimize Database

WooCommerce creates many database entries over time.

  1. Delete old revisions, transients, and spam comments
  2. Use WP-Optimize or Advanced Database Cleaner
  3. Schedule weekly database optimization

5. Limit Plugins

Each plugin adds overhead. Audit your plugins:

  • Remove unused plugins completely (not just deactivate)
  • Replace multiple single-purpose plugins with one multi-feature plugin
  • Avoid plugins that load scripts on every page

6. Optimize Cart and Checkout

  • Disable cart fragments AJAX on pages that do not need it
  • Use a lightweight checkout plugin
  • Minimize payment gateway scripts

Add this to your theme functions.php to disable cart fragments on non-cart pages:

add_action('wp_enqueue_scripts', function() {
    if (!is_cart() && !is_checkout()) {
        wp_dequeue_script('wc-cart-fragments');
    }
});

7. Use Object Caching

For high-traffic stores, implement Redis or Memcached object caching to reduce database queries.

8. Choose a Fast Theme

Avoid bloated themes with unnecessary features. Recommended fast themes:

  • GeneratePress
  • Astra
  • Flavor starter theme + Flavor child theme

Speed Testing Tools

Target metrics: Under 3 seconds load time, 90+ PageSpeed score