I have an extension built that programatically creates an order based on a REST API. It is working fine on a number of sites, but on 2 it recently has started showing a new behavior.
After about 3 to 5 days the site slows to a crawl (from maximum 3 seconds to load a page to as much as 12) and the site begins to run well again as soon as the extension is uninstalled. Nothing else is changed in the backend except installing/uninstalling the extension.
My theory was a forced log being left on and creating massive log files. It's looking like I was wrong. Now I don't have another theory. As I follow the code with xdebug and phpstorm, nothing seems to be going wrong, and nothing seems to take a long time.
What are some other possible ways that an extension can cause slow-down, but only after a couple of days?
Any ideas that might lead me in the right direction would be VERY appreciated.
EDITS:
re:can you explain "that programatically creates an order based on a REST API" a bit more? – andrewkett
- A jquery script run on the cart redirects a customer to a 3rd party hosted checkout based on the customers geoip
- the customer is redirected back with a new param on the url to my custom controller
- the controller makes a call to a RESTful API which returns an xml with order details
- the details are then used to build an order with the quote items in magento and the customer/payment info in the XML (based fairly heavily on http://www.devinrolsen.com/creating-magento-orders-programmatically/ )
- order is submitted, confirmation emails sent, etc.
this all is working well on a number of sites.