Since this thread seems active, I’ll throw in here too.
I’m running Local on three different Windows PC’s, I’ll provide specs below. On each one I’m experiencing drastic slowdowns with basic usage of Local and WordPress, I’ll also provide a list of common plugin/theme I use should that help diagnose the problem.
Desktop
i7 8700K
48GB RAM
Windows 11 Pro 21H2 (does not have WSL2 installed)
Laptop 1
i7 7820HK
32GB RAM
Windows 10 Home 21H2 (has WSL2 installed, Ubuntu)
Laptop 2
i7 1065G7
16GB RAM
Windows 11 Home 21H2 (has WSL2 installed, Ubuntu)
All three are running Local 6.3 and are logged in with a Local account (doubt this matters). In all cases, Local is installed on a different drive than the sites are stored on; this seems to mean that I must use Nginix instead of Apache as the web server of choice. My default setup is as follows:
Web server: Nginx
PHP: 7.4
Database: MariaDB 10.4.10
A typical WP install for me consists of the following:
WP Core
Current version (5.9.1 as of 2022-03-07)
Themes
Astra
Astra-child theme (usually setup by running wp scaffold child-theme)
Plugins
Astra Advanced Addon
Beaver Builder
Ultimate Beaver Builder Addons
Disable Comments
UpdraftPlus
There is also a warning that pops up when I create a new site saying that /etc/hosts can’t be written to. I’d read this is due to my antivirus/firewall; unless this is a performance problem, I have no problem editing C:\Windows\System32\drivers\etc\hosts myself to set: mysitename.local 127.0.0.1 I trust the above mention of /etc/hosts is a placeholder from Mac/Linux systems? Or is Local actually unable to edit the hosts file on Windows?
Additionally, I notice when right clicking on a site in Local and choosing Open in Site Shell I’m prompted with a series of warning messages stating:
Setting Local environment variables…
WP-CLI: Warning: PHP Startup: Unable to load dynamic library ‘php_imagick.dll’ (tried: D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_imagick.dll (The specified module could not be found.), D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
WP-CLI: WP-CLI 2.5.0
Composer: Warning: PHP Startup: Unable to load dynamic library ‘php_imagick.dll’ (tried: D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_imagick.dll (The specified module could not be found.), D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
Composer: Warning: PHP Startup: Unable to load dynamic library ‘php_imagick.dll’ (tried: D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_imagick.dll (The specified module could not be found.), D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
Composer: Composer version 2.1.5 2021-07-23 10:35:47
PHP: Warning: PHP Startup: Unable to load dynamic library ‘php_imagick.dll’ (tried: D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_imagick.dll (The specified module could not be found.), D:/Program Files (x86)/Local/resources/extraResources/lightning-services/php-7.4.1+16/bin/win64/ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP: 7.4.1
MySQL: mysql Ver 15.1 Distrib 10.4.10-MariaDB, for Win32 (AMD64), source revision c24ec3cece6d8bf70dac7519b6fd397c464f7a82
Loaded Shell for Local Site: My Site
These same warnings will appear again when running most wp cli commands like “wp plugin list” I had thought any needed dependencies would be installed with Local for Windows; should these be installed externally?
On first load of a clean Local WP install, the page will load in 2 seconds or less. However, moving to /wp-admin to log in for the first time begins to cause slow down. Once the above plugins and child theme are activated, page navigation and saving can take anywhere from 2-10 seconds on average.
Are there any metrics or tools I can provide to assist in the diagnosis? It’s gotten to the point where any serious WP development I’m forced to move to a dev server rather than working locally which would be much preferred.
Thanks for your time