Avoid reloading php-fpm after zero-downtime deployments

If you’re using nginx :
Nginx has special variable $realpath_root, use it to set up SCRIPT_FILENAME:

location ~ \.php$ {  
include fastcgi_params;  
fastcgi_pass unix:/var/run/php/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
}

Otherwise please consider disabling or increase opcache refresh rate.