Thanks for reaching to us and appreciate your patience.
For an unregistered user, after adding a product to the cart, it exists for up to 1 week, while when a user is registered, the cart’s existence is not limited.
After adding a product to the compare for a registered user and not for a registered user, it is stored for up to 1 week.