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:
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.