How does the PHP Realpath Cache work and how to configure it? The realpath cache in PHP is often overlooked and its exact workings are a bit of a mystery to many developers, fueled by a lot of explanations on the web that are just plain wrong. How exactly is the realpath cache working and at which level of PHP? There has been some buzz around realpath cache in the last weeks, so it is a hot topic to look into. First, The PHP 7.2 changelogs contain a small note about the realpath cache size, raising the question what about the previous default in pre 7.2 deployments and if you should look into changing it: realpath_cache_size: Set to 4096k by default The previous default was just 16k, a 256x increase is massive! Second, the blog post " Is it all Opcache's fault? " on the facile.it Engineering blog identifies the realpath cache as a potential problem during symlink deployments. Knowing about this issue is important when building your own deploy strategy. ...
Comments
Post a Comment