Our time out is currently set to 50 seconds. After this time Magento automatically returns a 504 Response Code.

Under normal circumstances this is fine. However, I have developed a page that allows wholesale customers to place orders using a spreadsheet type layout which they can order all items on the store in any quantity. There are around 600 products on this system.

While testing it, I have noticed that when I add a quantity of 1 for every product, the page is timing out as the controller I am sending the data to is taking longer than the 50s.

Is there a way to increase page time out in general, or even better, for specific pages?



I guess that you have using Nginx php-fpm.

You guess that if you have to update max_execution_time ,request_terminate_timeout,fastcgi_read_timeout

You need to update this variable on your server. Please check out some source:




Perhaps you should look at alternative solutions to extending the page timeout value. When dealing with long running functions, sometimes it is better to batch process it by storing the file to process and some marker data as to the last batch processed. Then have a CLI script process the file while your UI calls for updates via AJAX and gives the user updates on progress.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.