docker-symfony icon indicating copy to clipboard operation
docker-symfony copied to clipboard

PHP - Configure the PHP realpath Cache

Open StaffNowa opened this issue 5 years ago • 0 comments

When a relative path is transformed into its real and absolute path, PHP caches the result to improve performance. Applications that open many PHP files, such as Symfony projects, should use at least these values:

; php.ini
; maximum memory allocated to store the results
realpath_cache_size=4096K

; save the results for 10 minutes (600 seconds)
realpath_cache_ttl=600

PHP disables the realpath cache when the open_basedir config option is enabled.

StaffNowa avatar Mar 11 '20 09:03 StaffNowa