Very high latency in first HTTP request on CodeIgniter project Very high latency in first HTTP request on CodeIgniter project apache apache

Very high latency in first HTTP request on CodeIgniter project


I found the issue thanks to a comment posted above but the user didn't write an answer, so I'm posting it here.

The code written by the previous developers is making a pretty intensive use of the memcached extension, which I never used before, so I didn't know what it was or that I needed to enable it in my computer. I followed the steps here and that was it, load times are acceptable now.

Thanks everyone!


That sounds like a timeout on a domain or host-name look-up (or IP reversal), a bad localhost resolve to the IPv6 ::1 (with a fallback to 127.0.0.1), or an HTTPS request that timeouts out when doing a certificate revocation list check (you'd need to remove that option from whatever function that is handling this).


I had the same problem. Some of the potential solutions are:
1. You might have debug mode on.
2. The cache might not be setup. Set it to auto cache.

If none of them works out, try using docker for codeigniter which worked out foe me.

Hope it helps.