开发者

How-To handle AutoExpiring Shopping Carts

开发者 https://www.devze.com 2022-12-31 00:48 出处:网络
I\'m currently developping a online shopping store and the question of expiring carts comes. Should i use event based self timed cart entity, or should i make kind of polling task to cleanup o开发者_

I'm currently developping a online shopping store and the question of expiring carts comes.

Should i use event based self timed cart entity, or should i make kind of polling task to cleanup o开发者_JS百科ld empty carts ?

Thanks


I would use self timed cart entity and simply doesn't show expired carts. For db sanity, I would also make daily or weekly (depends on traffic You have) cleaning procedure which will remove all expired carts... but on the other hands You can use this data for analysis (what-customers-want) so in this case, preserve or compact.

0

精彩评论

暂无评论...
验证码 换一张
取 消