Answer the question
In order to leave comments, you need to log in
How not to wait for a response to a long request?
Essence of the question: there is a long request to the database on the site, it lasts about 5-7 seconds, if you go to the main page, you still have to wait until the first request (to the database) is completed, and only then (processes the request to go to the main page ) redirects to the main page, how can I configure nginx or php-fpm so that I don’t have to wait for a response to a long request?
Answer the question
In order to leave comments, you need to log in
It's most likely a session file lock issue and you need to call session_write_close() before running the long query.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question