Create Local WP sites in a separate folder. Do not use the default folder (C:\Users\YourUsername\Local Sites)
Sites running within the default folder are slow on Windows. They run lightning fast under any other folder. I hope this trick helps to end all performance issues for windows once and for all. I hope team fixes this bug in next release.
I just installed Local and found it impossibly slow. This is on a machine that has been running Docker (not started when using Local) to host my local WordPress development to date without any issues.
In short, I was just about to give up on Local altogether when I came across this issue. Sure enough, I created a new site in a different folder and now it is flying.
This all begs two questionsâŚ
After all this time (looks like this is a known issue) why isnât this even mentioned in the performance document that has been published.
Given that I - and it seems others too - find the default location impossibly slowâŚwhy is it the default?
I wasted quite some time looking at this (including reading the published docs about performance) and itâs REALLY unfortunate I had to just get lucky and find this post, instead of being given that information.
Since this was reported last year (and, I suspect, has existed for a long time), seems to have been accepted as a known issue, thatâs not a good look (âThat said, it is well on our radar to spend time enhancing the performance of Local for Windows machines.â).
Iâm the Product Manager on the Local engineering team, and I appreciate you asking tough questions. Itâs how the Local team and product improve and get better, so thank you.
Windows performance issues have been a tough nut to crack⌠mostly because it isnât consistent. Some users report it is slower, but not all. Some users keep sites in their C:\ drive and never have an issue. We have several Windows machines on the engineering team and havenât been able to put our machines into the same slow performance state either. Weâve left it the default but given users both a site-by-site and a global preference to control changing this value if desired.
I agree with you on making these troubleshooting steps more clear for Windows users; not having that clearly stated in the help doc on performance is a miss. I made an update to that help doc and published it so that Windows users have some guidance on what to try - Troubleshooting Performance issues in Local - Local
I apologize for the time spent chasing this down. Hopefully the help doc change makes this much more clear for other users going forward. Weâll continue to evaluate if making changes to the default makes sense. Any feedback you can provide us on this or other areas we can improve Local is immensely helpful.
@austinwendt - you saved the day (and very good timing). I was just about to kick off a non-aggressive (not my style!) but somewhat blunt post about how surprised I was with my experiences. But I am encouraged and respectful of your reply. Thank you.
So, let me give you a quick update and ask some questions. Having seen - somehow (see below) - your product perform well, I am actually quite motivated to resolve all this. So I will answer any questions you have, if it will help us get closer to a resolution. For the record, I worked at a certain very large company (one beginning with M and with lots of Windows! :)) so can help dig in somewhat technically, as necessary.
I donât know exactly how I did it bit I THOUGHT I created a site yesterday that was outside of c:\users (based on this thread). I ran it and it was flying. So, problem fixed I thought.
However, now I try to do some more work I am not able to create anything outside of c:\users (I am sure you are familiar with that message). I have no idea how I did did that yesterday! But that aside, even if I use c:\users (still outside of Local Sites), the performance is unusable. Literally minutes between pages.
As I say, I am more than happy to provide any more information. Thank you again for the timely response and also for updating the document.
I believe Iâm familiar⌠but could you share a screenshot of what youâre seeing when you try to create outside of C:?
The slowness between pages could be because of DNS and the domain suffix. What is the site host/domain for your site? Depending on the mode local is set to, it could be either localhost or something like mysitename.local, unless youâve changed it.
By the way, I just want to clarify one potentially important aspect of this, @austinwendt.
I am not trying to create sites outside of C:. Instead, I want to create a folder outside of c:\users. When I use a folder inside c:\users I am seeing the same sort of performance that I see when I have sites under âŚ\Local Sites.
So, I have created a folder (letâs call it c:\mysites) but the UI doesnât allow me to point to it (see error message). Is that supported and, if not, I am curious why not.
I would also like to know if I am going crazy when I say I DID create a site outside of c:\users yesterday. I was pretty excited because the performance issues disappeared when I tested this. But now I canât create sites outside of c:\users? Am I losing my mind?
Iâm not sure where you were able to make the site - do you still have that site on your machine? You should be able to see the file path if it is still exists!
Interesting on the localhost - can you try switching to Site Domain mode in Preferences > Advanced?
Switch to Site Domain mode
Come back to your site
Youâll probably have to âFix itâ to update your hosts file
See if the site performance improves
If not⌠try changing your Site Domain to something other than .local - .abc for example
I will try these suggestions, @austinwendt, and let you know. However, Iâd like to clarify one aspect.
On my initial change that forced the âFix itâ message, I am seeing the Provisioning message (and the animated dots under âSite hostâ) remain for a long time. I am about 10-15 minutes in, since I made that change, and the provisioning status remains i.e. it hasnât finished the fix yet. I assume that is unexpected, right?
Immediately after I sent that previous message, the provisioning finished (about 15 mins) but my site is now broken, with this (and many other) errors.
WordPress database error: [Table âlocal.wp_termsâ doesnât exist] SELECT t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('erropix_scripts') ORDER BY t.term_id ASC
I am going to create a whole new site and see if that helps.
By the way, I am still not clear on whether I should be able to create a site outside of c:\users? I am still within that because I am blocked from using a folder outside that. But I feel really sure I created one outside that and it was super fast. Is that simply not possible i.e. I am mistaken?
@austinwendt, not having much luck here. Tried to create a new site and now get this error (first time I have seen this). I did get the admin popup to confirm access and accepted that.
I just tried creating another site and that fails too. So I seem to be unable to create any sites at the moment, even under c:\users. Iâll continue to investigate but welcome any thoughts.
10-15 minute provisioning status - yes, that isnât expected⌠something isnât right there. The database errors are interesting as switching from localhost to site domains doesnât affect the database.
Local does lock down sites to the C:\ drive on Windows (why, Iâm not sure). Do you still have the site you believe you created outside of that? If it is still in Local, you should be able to see itâs file path.
The EPERM error just means Local doesnât have elevated permissions to write to that directory.
As far as troubleshooting this - itâs fairly easy to toggle back and forth between Site Domains and localhost. If you go back to localhost, do these errors all resolve?
Thank you again. I will have more time to spend later this morning (PT), but I again want to clarify one potentially very important issue, to make sure I am not missing something.
I have asked whether Local should be blocking site creation outside of c:\users. Your response wasâŚ,
âLocal does lock down sites to the C:\ drive on Windowsâ
I want to be really clear on this - itâs not the c:\ I am asking about. It is specifically the c:\users folder. Your reply seems to imply I should be able to create sites anywhere on the c:\ drive, yes?
I canât create any sites outside of c:\users. Should I be able to create sites in, say, c:\MySites?
OK, I think I have a significant clue, if not an explanation.
I was just playing around with the routing mode. I had it set back to Site Domains (in preferences) and created a completely new site. That seemed to be created OK. However, when clicking on either the admin page or trying to navigate to the site I received 404 errors.
So, I then switched that back to localhost. Hereâs where it gets fun.
I saw the message to Fix It (see below). However, without actually fixing it I am able to completely navigate to my site AND itâs very quick.
It seems Local is getting confused.
When the Fix It message is NOT visible, my site is unreachable.
When the Fix It message IS visible, I am able to access my site without any issues.
By the way, although Iâd still like to know if I should be able to create sites anywhere on my c: drive, my earlier mistake was that I was trying to create a site under c:\users, as opposed to c:\users<myname>. Dumb user error, but that at least explains that part.
I tried to provide some good information about what I was seeing but never got to the bottom of this. Sadly, Local doesnât seem anywhere near as reliable/performant as I would like.
I see the value in some of the benefits it offers but itâs been a nightmare to set up (in terms of seeing performance that is viable). I find that frustrating since on this same machine I have been running Docker images just fine and with excellent performance. But the ongoing difficulties of running Local under Windows means that, sadly, itâs not worth continued effort trying to figure out why it is so slow.