-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cart vanishes when the shell is restarted (OCC-276) #475
Comments
This is not a bug. The reference implementation of The advantage of this temporary storage is both ease of implementation and not having to worry about invalidating and periodically cleaning up abandoned carts (otherwise abandoned carts could accidentally or maliciously eat up the site's database space). The disadvantage is what you described. However config changes and deployments shouldn't happen so often where this becomes a realistic problem in everyday use, so session storage remains a suitable default. Web developers using OCC can implement their own |
Really every user-facing feature needs to be resilient so shell restarts in an OC app (as it is with the OOTB features, like user logins remain, and you can edit content items without disruption), since a shell restart is not at all uncommon. It happens e.g. in the following scenarios:
And furthermore, horizontal scaling should be possible to support as well. I don't think the current implementation is really appropriate, then. |
Describe the bug
If you have items in the cart, a shell restart will wipe it out. This is an issue because configuration changes, deployments can cause the shell to restart at any time, but this disrupts shopping and causes the shop to lose money.
To Reproduce
main
(9d3d685).Expected behavior
The cart remains after a shell restart too.
Screenshots
2024-08-01_23h08_05.mp4
Jira issue
The text was updated successfully, but these errors were encountered: