WooCommerce mini cart is cached and already has a product in it
When a visitor goes to your site for the first time, the mini-cart seems to be cached and already has an item (or items) in it. Visiting the Cart page itself shows there are no items in the cart, but the widget does not update.
Cart issues can be related to WP Rocket's optimization of the get_refreshed_fragments request from WooCommerce.
Install this helper plugin on your site to deactivate that feature:
📥 Download (.zip): WP Rocket | Deactivate WooCommerce Refresh Cart Fragments Cache
Developers: you can find the code for this plugin on GitHub.
- Download the helper plugin zip file
- Install the helper plugin on your site - go to Plugins → Add New → Upload plugin and select the zip file.
- Activate the plugin
If this solution does not work, the issue could be a different one, related to the way the cart widget on your site is coded. Please see this guide for more details.