WooCommerce Mini Cart Problems
-
I was testing with the Twenty Twenty Three theme, WooCommerce, the WooCommerce Mini Cart widget in the header, and the Advanced presets for Litespeed cache, and I noticed that the Mini Cart didn’t always reflect the correct cart contents, sometimes would suddenly empty when I hovered the mouse over it, and did not always show the correct contents if I clicked the icon.
The Mini Cart worked just fine with Litespeed Cache disabled, so it looks like an issue with Litespeed Cache itself.
I found this post, and added the suggested fix to my .htaccess, which seems to have fixed the problem:
<IfModule LiteSpeed> RewriteEngine on RewriteRule .* - [E=Cache-Vary:woocommerce_cart_hash] </IfModule>
Since this is a default WordPress theme, and WooCommerce is so common, I’m wondering if you would consider adding the fix to Litespeed Cache if WooCommerce is installed, or maybe as an option, as you have for other WooCommerce-related problems?
- The topic ‘WooCommerce Mini Cart Problems’ is closed to new replies.