Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP - Configure the PHP realpath Cache #18

Closed
StaffNowa opened this issue Mar 11, 2020 · 0 comments
Closed

PHP - Configure the PHP realpath Cache #18

StaffNowa opened this issue Mar 11, 2020 · 0 comments

Comments

@StaffNowa
Copy link
Owner

StaffNowa commented Mar 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant