📞 🇺🇸 +1 361 304 4309 📞 🇮🇳 +91 76769 02281 ✉️ [email protected]
WordPress Servers

How to Optimise WooCommerce on Nginx for Performance

How to Optimise WooCommerce on Nginx for Performance

WooCommerce has unique caching requirements — cart and checkout must not be cached. This guide covers optimising the full stack for WooCommerce.

Nginx Cache Rules for WooCommerce

set $skip_cache 0;
if ($request_uri ~* "(/cart|/checkout|/my-account)") {
    set $skip_cache 1;
}
if ($http_cookie ~* "woocommerce_cart_hash|woocommerce_items_in_cart|wp_woocommerce_session") {
    set $skip_cache 1;
}
if ($http_cookie ~* "wordpress_logged_in") {
    set $skip_cache 1;
}

Database Optimisation

wp transient delete --expired
wp wc tool run clear_transients

PHP Configuration

memory_limit = 512M
max_execution_time = 300

Conclusion

WooCommerce performance tuning requires balancing caching with cart functionality. Our team optimises WooCommerce server performance for high-traffic stores.

#woocommerce #nginx #performance #redis
Share:
🛠️ Need Expert Help?

Don't want to do this yourself?

Our certified engineers implement this for you — correctly, securely, and within hours. Available 24/7 with 15-minute emergency response.

  • ✅ 19+ years experience
  • ✅ 60+ certified engineers
  • ✅ 1,600+ servers managed
  • ✅ 40+ countries served
  • ✅ Plans from $49/mo

Get Expert Help — Free Consultation

We respond within 4 hours · No commitment required

Please enter your name and a valid email.

No spam. Privacy Policy

Comments