Playing around with Sonata and Sylius on my Vagrant box I found myself waiting 30 seconds to get a response from the server for every single request.

After looking up on the internet, all I found was that I needed to activate the cache on my projects. Which sucks. I don’t want to enable it on my dev environment and then on clean it every time I want to test something.

Luckily, I saw a twitter from @spicy_sake about slow performance of Symfony’s projets on vagrant boxes (see below) and the tipped me off with this article from Benjamin Eberlei. It’s a few steps article about how to troubleshoot the issue.

Screen Shot 2014-04-15 at 9.48.56 AM

In my case, once I’ve changed the type of my shared folders to NFS the problem was gone. I basically added ‘type: “nfs”‘ on the end of the related config:

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "host_path/", "/guest_path/", type: "nfs"

In the article there are more instructions if this one is not enough to keep you going.

That’s one of my favorites things about web. People helping people. Thanks guys!