I have a pretty time consuming script (in form of wp plugin), which imports some data from one source to wpdb. The problem is that it takes so long that reaches timeout (504): after 1200s(nginx) or 60s(apache). I read topics about chanching configurations values: fastcgi_read_timeout (nginx) or TimeOut (apache) but there are no results. Configs seems to be ignored.
How should i extend timeout for any of possible servers? Or how should I approach this without breaking script into smaller pieces.
Set up any site.
Modify timeouts value for any server. (Decrease it to few seconds for testing purpose?)
Run something what can reach timeout.
Local v6.4.1+5978
Windows 10