-
Notifications
You must be signed in to change notification settings - Fork 113
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
Only create a cart if at least one product was added #280
Comments
Is this implemented? My table offline_mall_carts is getting very big with time, maybe this is the reason? |
No it is not implemented yet but probably the reason your table is large. You can use a query like this to get old carts and delete them: $q = \OFFLINE\Mall\Models\Cart
->where('customer_id', null)
->where('updated_at', '<', now()->subDays(3))
->get()
; |
The table is getting very large very quickly, like 500-600 new carts a day. Every few minutes, irregular intervals. I don't have such a traffic on my site. What could be the reason? |
Do you have server access logs? Could be bots indexing your site |
I have checked logs. Indeed the traffic is from bots, mainly Googlebot, bingbot and PetalBot. So I have to clean the Carts table very often. |
Sometimes a small change goes a long way. This is fixed in v3.4.3 (107ed12) |
Credits to samuell on Slack
The text was updated successfully, but these errors were encountered: