What is realpath_cache in PHP?

2020-07-06 07:16发布

Can anyone tell me what exactly is meant by realpath_cache in PHP? Lots of references have been made to it in the PHP manual, but nothing explains it adequately. For example, the article on clearstatecache says that the parameter clear_realpath_cache denotes whether to clear the realpath cache or not. What is meant by this statement?

标签: php
1条回答
疯言疯语
2楼-- · 2020-07-06 07:51

realpath_cache is the system that allows php to cache paths to locations of files/directories you are using to minimize expensive disk lookups. It could possibly greatly improve performance of you PHP application/site if you use alot of relative file paths PHP has to parse/lookup each time you reference them.

查看更多
登录 后发表回答