1. Home
  2. Applications Management
  3. WordPress
  4. How to Fix LiteSpeed Cache + WooCommerce Conflicts

How to Fix LiteSpeed Cache + WooCommerce Conflicts

LiteSpeed Cache and WooCommerce work together quite well right out of the box in most cases, however, there are some situations where the shopping cart is not updated correctly.

In this article, we’ll show you how to do a configuration tweak that will fix any incompatibility between LiteSpeed Cache and some WooCommerce themes.

How to Fix LiteSpeed Cache + WooCommerce Conflicts

Once you are logged into your WordPress admin panel, please go to LiteSpeed Cache > Settings > Excludes.

Under Do Not Cache Cookies, please add:

woocommerce_items_in_cart

Scroll down and press Save Changes.

Now please clear on your web browser cache and check on your site again. You should now see that your site’s pages are being cached and the cart is properly updated.

The WooComerce themes with Ajax carts work fine without any adjustment. Adding the cookie to the Do Not Cache Cookies list should really be considered a last resort. Any time you tell LiteSpeed not to cache a cookie, then any page that is visited while the cookie is detected will not be cached.

If you enjoyed this tutorial, then you’ll love our support. All ChemiCloud’s hosting plans include 24/7 support from our amazing support team. Check out our WordPress hosting plans and have your website migrated today!

Updated on April 18, 2020

Was this article helpful?

Related Articles

Need help?
We're always here for you. Submit a ticket or Chat with a live person.
Submit Ticket

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.