I am trying to reset PHP opcache after a symlink-style deployment. There is the opcache_reset.php file in my project which is executing by wget after t
opcache_reset.php
wget
Reasons and two possible solutions described in the ZendOptimizerPlus issue. We solved it by using $realpath_root in the nginx config:
$realpath_root
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root;