PHP 5.5 has Opcache built-in. Opcache is supposed to invalidate when the script has changed, but it has issue when the script is in a symlinked folder and called from the webserver.
Basically, Opcache "thinks" that the script is /var/www/hello/current/public/index
while in reality, it's /var/www/hello/releases/20140101011/public/index
.
To solve the issue, add the following command to be run at the end of your deployment:
php -r "opcache_reset();"