Caching issue with the basket
-
Hi, I’m having a caching issue with the basket. Please check the video. Could you please provide the JS that I need to exclude from being cached? After clearing the cache, the issue is gone.
Thanks in advance.
Hello,
Try to exclude the cart page URLs from being cached from the plugin settings and check the issue.
Best Regards,
Do you mean that there’s no JS script that needs to be excluded? Are you sure about that?
Hello,
Please let us know which cache plugin you are using (WP Rocket, LiteSpeed, SiteGround Optimizer, etc.). Once we know that, we can advise exactly what (if anything) should be excluded for your setup.
Best Regards,
Hello,
In general, Wishlist, Cart and Compare pages should not be cached at all, so I suggest you exclude those pages from cache and recheck the issue.
Please refer to the article for more details
https://secure.lightningbase.com/index.php/knowledgebase/71/How-to-exclude-a-page-from-Litespeed-cache.html#:~:text=Log%20in%20to%20your%20WordPress,that%20should%20not%20be%20cached.
Best Regards,
So you are sure that no JS script should be excluded, only the pages?
Hello,
When using LiteSpeed Cache, you don’t need to exclude any specific JS files. The correct solution is to exclude dynamic WooCommerce pages (Cart, Checkout, Wishlist, Compare) from caching. Caching these pages causes the cart not to update properly.
Best Regards
Hello,
You’re Most Welcome!
Feel free to write back anytime. If you need further assistance, we are always here to help you.
If you have a minute, we’d truly appreciate your feedback — it helps us improve the product and shape future updates more effectively. We’d love your feedback on our theme: https://tally.so/r/w4l54k
Thanks for contacting us.
Have a great day.
Topic Closed.
Best Regards.
The topic ‘Caching issue with the basket’ is closed to new replies.