Speed Issues on Local Machine

Working at my wordpress site on shared hosting is much faster than the site hosted on my mac.
Shouldn’t it be other way around, or am i doing something wrong?

1 Like

There are a number of different variables including possible Varnish/caching usage on your shared host that could make it faster than Local.

Do you mind sharing the PHP version and web server that the site is running on in Local?

On local we are using PHP 7.0 and Apache
On shared host it’s 5.3 and Apache, we also don’t use Varnish or caching because it’s still in development.

Is there any way you can e-mail me (clay@getflywheel.com) the link to your development site and also provide a Local export of the site?

I’d love to check out the speeds myself and look into a solution :slight_smile:

I am having the exact same issue with my site. It isn’t particularly large or complicated but the backend admin area is running extremely slowly (taking up to a minute to load when updating a page, etc.). It is using PHP 7.0 and nginx. I’d like to know what the issue is when you resolve it.

If you don’t mind can you also email me at clay@getflywheel.com and include an export? The more to test the merrier :slight_smile:

After testing @muratyamac’s setup, I was able to get some significant performance gains by disabling Xdebug.

This can be done by doing the following:

  1. Open conf/php/VERSION/php.ini in your Local site folder

  2. Scroll to the bottom and look for

zend_extension = /opt/php/7.0.3/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so

(this is different for each PHP version but searching for simply xdebug.so will work)

  1. Add a semicolon before zend_extension to comment it out so it looks something like
;zend_extension = /opt/php/7.0.3/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so
  1. Restart the site
1 Like

Is this something you’d recommend doing on sites in general? (I guess, was this an edge case where there was an issue or would most sites experience a big performance gain by doing this?)

You can try it on all of your sites. I’d love to hear what the results are.

If people are generally seeing good results I think we’ll disable it by default and add a checkbox for toggling it.

Hi Clay!

Thank you for the suggestion. After disabling xDebug the Local websites were sensibly faster: I’d say roughly a 30-to-40% improvement on loading times of backend pages.

The two websites, however, are still sensibly slower locally than on SiteGround. By locally, I mean my MacBook Pro laptop with 16GB of RAM; by SiteGround I mean a VPS with neither page nor database cache.

Is there some further optimiziation you would suggest?

Thank you,
Guido

Not at the moment other than disabling Xdebug.

Feel free to email me the Local export(s) of the websites you are still having performance issues with and I’d be happy to look into it some more :slight_smile:

Chiming in since I just tested this: I have a client site set up in local, and I just happened to create a duplicate of this site on a brand-new, very fast NGiNX server.

Using Safari’s admittedly crude Timeline view, I see that generally WordPress backend on the remote site (Laravel Forge on Linode) is a little bit more than 2 times faster to open a list view of posts, custom post types, pages, etc. when compared to the local site – what takes 831ms on the remote site, needs 1.98s on the local site.

This is on a retina MacBook Pro 16GB RAM box.

Thanks for the breakdown!

Did you try disabling Xdebug for that site in Local?

Yep.
[Xdebug]
;zend_extension = /opt/php/7.0.3/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so
xdebug.remote_enable=1

(I actually disabled XDebug for all my local sites)

Hi Clay
FYI: I did a quick video screencap.
Left window is on the remote server, right one is in local.

It’s not that using Local is unbearably slow, but it clearly is quite a bit slower than the Linode server in Frankfurt, which is ~300km away.

1 Like

Hey all,

Just wanted to let everyone we have made vast improvements on this issue and it will be in one of the upcoming updates :grinning:

4 Likes

FWIW, personally I definitely want Xdebug on by default. That said a GUI toggle for it (global or per site doesn’t matter to me) would be welcome.

1 Like

Reporting that my local installation is faster after implementing Clay’s suggestion to comment out the “zend_extension” line.

1 Like

Hi Clay,

I’ve tried to disable Xdebug but the site is still extremely slow in Local… Do you have any idea to make it faster?

I work with:

WordPress: 4.7.4
PHP: 7.0.3
Web Server: Apache
MySQL: 5.6
(Windows 10)

Thank you for your help :slight_smile:

Regards

Any hints as to when this upcoming release might be?