Hi. My new woocommerce site is https://postista.com/
My problem is that when I add a product to my favorites or cart, it appears differently in the header of each page, or doesn’t appear at all. For example, I go to a product page and add it to my cart, but when I return to the homepage, the cart appears empty in the header. The same thing happens with the favorites button. You’ll easily understand if you try it on my site. Removing the LiteSpeed cache plugin seems to solve the problem, but I want to fix this issue without removing the plugin. Thank you.
Hi,
This is a common situation when a cache plugin is used with a shop, so you should ask for LiteSpeed support, help they will know what you should exclude:
https://blog.litespeedtech.com/2017/05/31/wpw-fixing-lscachewoocommerce-conflicts/
To exclude cookies from the cache, enter the values of the cookies in the Never Cache Cookies field:
woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session
woocommerce_recently_viewed
Thank you!
I think my problem is solved. Test it for a while.
Thank you very much Calin.
After adding an item to the cart, both the cart counter and the favorites counter work correctly. However, the favorites counter doesn’t work properly even before adding an item to the cart. Is another line needed for the favorites counter?
The values you provided are really helpful. However, this time, after adding a product to favorites, the pages start loading slowly. It’s like I’m visiting that page for the first time. I know this isn’t related to you. Thank you so much. I guess I won’t use a caching plugin. There doesn’t seem to be another way.