I noticed that Local runs really slow on my new XPS PC. If I change the DB_HOST from “localhost” to “127.0.0.1” in the wp-config.php file, I get around a 50% speed boost on my local sites. It’s blazing fast.
My only problem is when I pull from a live site on flywheel, it resets the DB_HOST back to “localhost” in wp-config.php.
Is there a way to keep it as “127.0.0.1” on local sites without having to go in and manually change it every time you make a pull from a live site?
Nice find @jeremycollins!
Right now there isn’t a way to make that setting persist since Local will re-build the
wp-config.php file after pulling, but I think this is a nice improvement since Windows doesn’t have a Unix socket to connect to MySQL over!
Thanks! I’d be interested in whether or not others experience the same performance boost by changing their DB_HOST to 127.0.0.1.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.