Cart Widget Caching and ESI Block Issue
-
Hi,
I’ve encountered an issue on my WooCommerce site related to the LiteSpeed Cache plugin.
It seems that my cart widget is being cached, which results in it not updating correctly when items are added or removed. Specifically, when I add a product to the cart, and then visit the homepage, the cart widget still shows “0” items, even though it should show “1”.
Here are the steps I’ve already taken to troubleshoot the issue:
- Disabled All Features: I turned off all the caching features in the plugin, and the issue disappeared
- Rolled Back to Version 5.5: I reverted the plugin to version 5.5, but the issue persists.
- Disable Only Cache: Issue dissapeared.
I also tried to replace the cart with an ESI Block:
[esi cart_icon cache=”no-store” ttl=”0″]This solved the issue, but after a day or maybe a few hours, the cart icon disappears from my website’s header and only reappears after I clear the cache.
Can you advise on how to permanently fix this while using the caching capabilities?
Thank you
P.S: I use GeneratePress theme
- The topic ‘Cart Widget Caching and ESI Block Issue’ is closed to new replies.