Answer the question
In order to leave comments, you need to log in
Why does a request from PHP take 10 seconds, but the same request from the console or navigator takes 0.2 seconds?
Why does a request from PHP take 10 seconds, but from the console or navigator the same request takes 0.2 seconds?
The query uses
LOWER(column) LIKE LOWER({$var})
Database - from Bitrix.
Nothing is connected on the page except this request.
Via console - 0.036 sec
Via PHP script - 10 seconds think something think think think...
memory_limit - 1536MB
OpenServer, PHP 5.5, Apache 2.4
Answer the question
In order to leave comments, you need to log in
wangyu: access to the database goes by domain, not by address.
if I'm right, replace the domain with ip and check.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question