Issues with setup for WC virtual products




Wordpress LScache Plugin: Issues with setup for WC virtual products

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, We have a recurring problem with our configuration of WooCommerce with LiteSpeed Cache. We sell virtual products (online courses with LearnDash) and, once in a while, we notice that our carts are not accessible: you can access the checkout page (we use one-page checkout from wc), but the cart has a wheel that spins endlessly. Up till now, the solution has been to purge the databases, purge all cache, as well as Cloudflare cache, and then it reverts back to a normal behavior where people can purchase the courses. But I imagine our problem is more related to a configuration issue, as I dont see the point in having to regularly go manually purge everything? We did set up LS Cache according to suggestions from the official documentation. When we get to Cache>WooCommerce>Product Update Interval, we had the setting turned to Purge product and categories only when the stock status changes . The thing is, since we use online courses, we dont have any stock set. Is that the right setting for our situation, or should we select the last option Always purge? ? For the rest of the items in that folder, we have: Use Front Page TTL for the Shop Page > Turned ON Privately Cache Cart > Turned ON Is that ok? Also, do we need to exclude cart pages in any way in Cache>[4]Excludes ? Last question: how can I automate the optimization of the databases? Thank you for helping us with our issue(s)! The page I need help with: https://sustainable-agriculture-institute.education/home/enrollment-center/free-online-pdc-introduction/ Hi, After you purged , the cart working for once , or for some times (like few hours) and then breaks again ? Best regards, Hi qtwrk! Yes, it appears to be working for a few days (up to a week I believe), then the error occurs again? Thanks for any help you can provide! Following up, in Cache>[4]Excludes>Do Not Cache URIs I added ^/enrollment-center/ (enrollment center being my shop page, with all products linked to it, as /enrollment-center/product1/ for example). It seemed to work for a while, but I just checked after 1.5 hours, and were back to the spinning wheel (tested in incognito mode). When I purge the cache, though, everything seems to be back to normal? Hi, Could you please try this : 1. go to cache ?> esi , enable ESI 2. in ESI nonce list , add into it 3. save setting and purge all then try see if it still works or not after a while. Best regards, Hi qtwrk, Thank you for your reply. So, we just added in the ESI list, and so far, it seems to work: the spinning wheel disappeared and the cart seems to work. The error shown when inspecting the element has disappeared. Can you explain to me what that asterisk in ESI actually performed? I love to learn and understand what I do Thank you for your amazing helpHello again qtwrk, Our cart worked for a while, then it started spinning again. When I inspect the elements on my page, I get the following error message: Failed to load resource: the server responded with a status of 403 () /?wc-ajax=update_order_review:1 Any thought? Hi, that 403 is usually caused by nonce expiration we now need to know the nonce names that cart is using. is it cart from 3rd party plugin or from theme ? could you please do a full-text-search on the cart files , looking for keyword nonce if you can contact cart author , please kindly ask them for the name of nonces they use. for how ESI works , please check this page by design , I would think will match for any kind of nonce name , but seems I was wrong , and probably need to get the nonce names from cart Best regards, Hi, @beauw Im going to mark this topic Resolved, due to lack of activity. If you would like more information about ESI Nonces and why that should solve the issue you are having, check out this blog post. And if you still need help, just let us know! Well be happy to reopen the topic. Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference