There is a problem in deleting the cache for the mini cart (cart icon), as I use wp rocket, and I contacted them and this was their response ( I can see the cart is not fully compatible with page caching. Only carts that rely solely on JavaScript or AJAX are compatible ) and I was asked to contact you after putting temporary solutions that work sometimes and do not work others