How can I tune the PHP realpath cache?

后端 未结 3 1017
臣服心动
臣服心动 2020-12-30 16:19

Recent versions of PHP have a cache of filenames for knowing the real path of files, and require_once() and include_once() can take advantage of it

3条回答
  •  天涯浪人
    2020-12-30 17:08

    You've probably already found this, but for those who come across this question, you can use realpath_cache_size() and realpath_cache_get() to figure out how much of the realpath cache is being used on your site and tune the settings accordingly.

提交回复
热议问题