Add to cart delay when products get added in urgency
-
Hi, I am using your ajax add-to-cart pro on my website.
We know that for every add-to-cart click woocommerce send a request to the server and saves the item info in the server for that user. So when using your plugin for every plus or minus click server have to process a request and add or remove the product in cart. But when this happens very quickly, its becomes a problem.
For example, if someone in urgency and adds 15 item for a product very quickly with their mouse, then move to another product and add again 10 more item quickly server takes a massive request hit in just a few seconds.
I can’t purchase a very costly server, but use somewhat good server which can handle 5000 visitors a day. But because of quick adding of some customers website becomes very slow or crash and most of time cart don’t get updated with that users input.
Is there any solution for this? Maybe I was thinking it is possible to add a delay time for add to cart for about 200 to 500 milliseconds, so during that time however much an in-hurry customer keeps clicking, their items will get updated when they stop. The delay time is to wait and check if a custom click again, so they don’t make the server angry.
What do you think? Please let me know your feedback and hope I made sense.
Thanks
Julash
- The topic ‘Add to cart delay when products get added in urgency’ is closed to new replies.