Today we’re progressing to discuss the advantages of exploitation LiteSpeed Cache for WordPress and WooCommerce along in your WordPress-based store.
Did you recognize that LiteSpeed Cache is compatible with WooCommerce? LiteSpeed Cache has integral logic to handle everything WooCommerce determines to be cacheable, that creates a separate WooCommerce caching plugin unnecessary!
Here are a number of the options of LSCache that build a pairing with WooCommerce thus sweet:
For starters, if WooCommerce says something is cacheable, then LiteSpeed Cache will cache it. Alternately, if WooCommerce doesn’t want something cached (like, for instance, the Cart, My Account, and Checkout), LiteSpeed Cache will automatically respect that, and will not cache those pages. There’s no extra configuration required.
If your stock is managed by WooCommerce, then product pages can be purged from the cache whenever the stock changes (whether this is at checkout or by an administrator at the wp-admin Dashboard). Additionally, with our “smart purge” technology, when a product page is purged (for whatever reason), the related category and tag pages can also be purged from the cache, this way you ne’er have non-current product info showing anyplace on your web site. This is a big advantage of LiteSpeed Cache. Other plugins struggle with purging connected class pages, as a result of they don’t have a cache tagging system like ours.
For a lot of management, you’ll set your caching preferences, in LSCache’s WooCommerce Configurations tab.
Set your preferred caching interval based on your store’s configuration. For instance, if you display your stock figures on the product or category pages, you will probably want to purge the product and the related categories any time someone buys one amongst those product, like in the example below. On the opposite hand, maybe you don’t display your stock anywhere. In that case, you will need to stay your store mostly-cached with an extended TTL, and solely purge the relevant pages once a product becomes fully unavailable . It’s your choice.
Example:
Let’s say there’s a product in your shop called Rainbow Crayons. You have 10 boxes of them in stock, and your product page displays this. Now you’ve sold a box. When the customer checked-out, that Rainbow Crayons page was purged from your cache, because the quantity in stock changed from 10 to 9. The next traveler to Rainbow Crayons would get a recent copy of the page, and it would display 9 boxes in stock. If your class and tag pages additionally show stock info, presumably you’d want fresh copies of the Crayons category page, and the Rainbow tag page as well. To make this happen, you’d put together LSCache to purge relevant classes and tags whenever a product page is purged. The next customer to visit those pages would see that you now have 9 boxes of Rainbow Crayons in stock.
So, this is all pretty cool, don’t you think? With LiteSpeed, your WooCommerce shop cache will be kept as fresh as possible, and your customers will always see the most up-to-date information in your product, category, and tag pages.
LSCache will all of this, and continues to be totally purposeful on the remainder of your WordPress website too.
Coming Soon: The Company working on a new version of LiteSpeed Cache for WordPress that will support Edge Side Includes (aka ESI). This means that you’ll be able to cache an entire page in public, while punching holes in that page for private data (like shopping cart information, for instance, or a personalized welcome message). Keep an eye out for that exciting development soon! As you’ll see, LiteSpeed Cache and WooCommerce create a pleasant combine. In most cases, they are compatible right out of the box.