PHP-FPM: How to clear the realpath cache on deployment?
| From: | Sebastian Bergmann | Date: | Fri, 19 Jun 2015 12:43:09 +0000 |
| Subject: | PHP-FPM: How to clear the realpath cache on deployment? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-86756@lists.php.net to get a copy of this message | ||
Scenario: nginx + PHP-FPM / FastCGI.
The final step of the deployment is updating a symlink to point to the
new version.
For N <= realpath_cache_ttl seconds after the deployment, some
filesystem operations fail because of outdated realpath cache entries.
Is there a way to signal the PHP-FPM / FastCGI processes to clear
the realpath cache? If not, I think this should be added :-)
Thanks!
Sebastian