Magento – How to prevent the page timeout

magento2timeout

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?

Thanks

Best Answer

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:

https://stackoverflow.com/questions/45252317/nginx-php-fpm-7-1-504-gateway-time-out

https://stackoverflow.com/questions/24453388/nginx-reverse-proxy-causing-504-gateway-timeout

Related Topic