LiteSpeed settings for SureCart

I have been using SureCart for just over a year now, I have always had issues with LiteSpeed caching and the cart.

Finally a user in the SureCart Facebook gave a clear list of settings to configure for SureCart with the LiteSpeed plugin for WordPress.

The steps are:

How to setup Litespeed cache for Surecart
1. Under Cache -> Cache - set Cache REST API to OFF
2. Under Cache -> Excludes - add the below under Do Not Cache URIs
/wp-json
/checkout
/customer-dashboard
/shop
3. Under Cache -> Browser - set Browser Cache to OFF
4. Under Page Optimization -> JS Settings - set JS Combine to OFF
5. Under Page Optimization -> Tuning - add the below under JS Deferred / Delayed Excludes
api-fetch.min.js
a11y.min.js
i18n.min.js
url.min.js
litespeed surecart settings faceboox 19 11 2024

This is very important as you will get weird errors where cart items disappear, shop buttons don’t work etc.

Similar Posts