Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我realpath_cachePHP中的确切含义是什么?在 PHP 手册中已经对它进行了很多引用,但没有充分解释它。比如on上的文章clearstatecache说参数clear_realpath_cache表示是否清除realpath缓存。这句话是什么意思?
realpath_cache
clearstatecache
clear_realpath_cache
realpath_cache是允许 php 缓存您正在使用的文件/目录位置的路径的系统,以最大程度地减少昂贵的磁盘查找。如果您在每次引用它们时使用 PHP 必须解析/查找的大量相对文件路径,它可能会大大提高您的 PHP 应用程序/站点的性能。