rocketeer
rocketeer copied to clipboard
nginx symlink caching issue
After each deploy i run php -r "opcache_reset();"
and i've added
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
to /etc/nginx/fastcgi.conf
But it still redirects to the old release. What is the best way to solve this?
You can use cachetool (by pulling the PHAR during deploy) which has an opcache:clear
command that should work in theory
The problem with that is that it requires root access.
I found a different solution that seems to work. I've created a php file with
<?php
opcache_reset();
and call it with curl.