我最近激活了opcache,但它似乎不起作用。它被确认通过phpinfo()激活。

如您所见,0命中1错过1缓存脚本(opcached gui)
我遗漏了什么?
服务器是Linux服务器,centos 6.5VPsPHP5.5
关于opcache配置的更多信息。
opcache_enabled真
cache_full假
restart_pending假
restart_in_progress假
used_memory 8.54MB
free_memory 503.46 MB
wasted_memory 0字节
current_wasted_percentage 0.00%
buffer_size 4194304
used_memory 446.41 kB
free_memory 3.56MB
number_of_strings 4895
num_cached_scripts 1
num_cached_keys 1
max_cached_keys 65407
点击率0
start_time星期六,7月26日23:20:32 +0000
last_restart_time从不
oom_restarts %0
hash_restarts %0
manual_restarts %0
失手1
blacklist_misses %0
blacklist_miss_ratio 0.00%
opcache_hit_rate 0.00%
发布于 2014-07-27 20:48:21
这看起来像是在使用cgi而不是mod_php5。共享内存区域(SMA)用于这两种情况,但它只保留对后者的请求到请求。
发布于 2014-07-27 21:35:36
今天我在WHM/cPanel服务器上发布了这个问题。正如TerryE所建议的,您可能正在运行CGI或suPHP。改为DSO。
https://stackoverflow.com/questions/24976116
复制相似问题