V
V
Vladimir Revyakin2016-11-04 16:35:34
PHP
Vladimir Revyakin, 2016-11-04 16:35:34

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

1 answer(s)
A
Alexey Ukolov, 2016-11-04
@alexey-m-ukolov

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 question

Ask a Question

731 491 924 answers to any question