So this is a great method for deploying, apart from one thing.. PHP’s opcache may catch you out. This happened to me in real life and as a temporary fix we had to restart Apache on deployment (I can’t remember what we did as a permanent fix..)

Anyway, please read more here if you’re using this symlink switching for deployment: http://codinghobo.com/opcache-and-symlink-based-deployments/