Totally Zenned
- Join Date:
- Aug 2009
- Location:
- Bedford, England
- Posts:
- 968
- Plugin Contributions:
- 0
Limit Number of Items Shown in Cart
I have found a small issue where a client of mines site / server was playing up due to server resources being all used up. Upon investigation it was because one single visitor was maliciously adding hundreds of products to the shopping cart, and for each product in the cart obviously there is a defined number of queries associated with it. in this case was around 80-90. Thats 250 products resulting in a 20,000 query page load on average!
what I am wondering is if there is a way to limit the number of items displayed to safeguard against this? setting it to 30 for example, not stopping from someone checking out with more than 30 but just to stop more than 30 being called and displayed on that page?
Any ideas?
Cheers
Phil
Phil Rogers
A problem shared is a problem solved.