Reputation: 269
I'm developing a project in Wordpress. I have a virtual machine with vagrant running in localhost and my project lasts 10 min loading everytime. In a remote server it just lasts about 3 or 4 seconds.
By the way, I have other projects in localhost that they do not last that much.
Is there any problem with localhost and Wordpress?
Thanks.
Upvotes: 3
Views: 10885
Reputation: 2547
I know is a quite old question, but I solved disabling Wordfence plugin
Upvotes: 0
Reputation: 11
Here's what i figured out. I opened my Hosts file in windows and it had a lot of unnecessary entries. I removed all unnecessary ones and then checked, there's been an incredible difference. Localhost WP is working super fast.
** The entries were associated to 127.0.0.1
I guess the fewer items associated to 127.0.0.1, the faster the localhost server becomes.
** This was experienced under Xampp.
Upvotes: 1
Reputation: 31
I've had the same problem on Linux. Nothing worked including disabling cgi, tuning databases, etc.
Here's what did work for me. Running Centos 7.3. I have multiple vhosts running under Apache 2.4. WP domain: mysite.org
In /etc/hosts 127.0.0.1 mysite.org
This was slow as heck on a fast computer. I'd tried everything. Then I determined it was a problem was with WP resolving 'things.' WP uses locahost.
My IP address on my local network was 192.168.0.106. I then tried that.
Changed /etc/hosts 192.168.0.106 mysite.org
Now WP runs fast on my local test server.
Upvotes: 3