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:
-
Open conf/php/VERSION/php.ini in your Local site folder
-
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)
- 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
- Restart the site