【发布时间】:2017-10-01 14:53:46
【问题描述】:
我的 Laravel 应用程序大约有 10,000 个文件,包括我的供应商目录中的第 3 方包。但是,启用 OPCache 后,它似乎只缓存了 667 个文件和 1,321 个键。
有什么我遗漏的,或者这可能是准确的吗?以下是我的 OPCache 状态中的一些统计数据:
total memory: 300.00MB
used memory: 26.83MB
free memory: 273.17MB
wasted memory: 0.00b (0%)
number of cached files: 667
number of hits: 3,621,095
number of misses: 849
blacklist misses: 0
number of cached keys: 1,321
max cached keys: 16,229
【问题讨论】:
-
@MichaelBerkowski max_accelerated_files 设置为 10,000。