Using LiteSpeed Cache with WooCommerce

Using LiteSpeed Cache with WooCommerce

Learn how to use LiteSpeed Cache on a WooCommerce shop. The plugin recognises WooCommerce by itself. It caches your shop and product pages, and leaves the cart, checkout and account pages uncached so each customer only ever sees their own details.

Steps

  1. Install the LiteSpeed Cache plugin and apply the Essentials preset. See Choosing LiteSpeed Cache Settings for WordPress
  2. Log in to your WordPress admin dashboard and select LiteSpeed Cache, then Cache
  3. Click the WooCommerce tab, which appears when WooCommerce is active, and leave the settings at their defaults
  4. Open your shop in a private or incognito window, add a product to the cart and check that the cart shows the right item and total
  5. Open your shop in a second, different browser and check that its cart is empty
  6. Go through the checkout as far as the payment step and confirm that every page loads correctly

Important: Do not add the cart, checkout or account pages to any cache yourself, and do not use a second caching plugin alongside LiteSpeed Cache. Two caches working on the same pages is the most common cause of customers seeing the wrong cart.

Please note: Prices and stock levels update in the cache when you change a product in WooCommerce. If you change them another way, such as a bulk import, purge the cache afterwards. See Purging the LiteSpeed Cache in WordPress

Your shop pages are now cached, and carts and checkouts remain personal to each customer.

More on Your Shop