Drupal Commmerce is creating an empty order for every single anonymous user in my website (over 13000 in just a few hours).
Users on my website have no direct access to the shopping basket, nor do they have any means of adding products to the cart, since for the moment, I'm only planning to use the Drupal Commerce functionality for specific users (i.e. I will create a product in the backend, then send the URL to the customer).
It doesn't seem right that so many orders are created for users who don't even have the shopping basket block in their page.
Why does this happen?
Is there a way to prevent it?
You can see in the screenshot how the empty-basket orders are being created for every anonymous user, this is slowing down the site!
commerce_cart_order_id()
, which can be called from a multitude of places. If you have the cart block active, for example, it will be called during the build process for all users