Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 586 Bytes

Troubleshooting.md

File metadata and controls

13 lines (8 loc) · 586 Bytes

Troubleshooting

When I deploy my old scripts are running instead of the new, but the deployment was successful

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();"