OpCache不缓存 [英] OpCache not caching
问题描述
ive opcache似乎不起作用. 通过phpinfo()确认已激活
ive recently activated opcache but it doesn't appear to be working. It's confirmed activated via phpinfo()
如您所见 0次 1小姐 1个缓存脚本(opcached gui)
As you can see 0 hits 1 miss 1 cached script (opcached gui)
我想念什么?
服务器是Linux服务器centos 6.5 vps PHP 5.5
Server is a Linux server centos 6.5 vps PHP 5.5
有关opcache配置的更多信息
A bit more info about opcache configuration
opcache_enabled true
opcache_enabled true
cache_full错误
cache_full false
restart_pending假
restart_pending false
restart_in_progress假
restart_in_progress false
used_memory 8.54 MB
used_memory 8.54 MB
free_memory 503.46 MB
free_memory 503.46 MB
wasted_memory 0字节
wasted_memory 0 bytes
current_wasted_percentage 0.00%
current_wasted_percentage 0.00%
buffer_size 4194304
buffer_size 4194304
used_memory 446.41 kB
used_memory 446.41 kB
free_memory 3.56 MB
free_memory 3.56 MB
字符串数4895
num_cached_scripts 1
num_cached_scripts 1
num_cached_keys 1
num_cached_keys 1
max_cached_keys 65407
max_cached_keys 65407
点击0
start_time Sat,14年7月26日23:20:32 +0000
start_time Sat, 26 Jul 14 23:20:32 +0000
last_restart_time never
last_restart_time never
oom_restarts 0
oom_restarts 0
hash_restarts 0
hash_restarts 0
manual_restarts 0
manual_restarts 0
未命中1
blacklist_misses 0
blacklist_misses 0
blacklist_miss_ratio 0.00%
blacklist_miss_ratio 0.00%
opcache_hit_rate 0.00%
opcache_hit_rate 0.00%
推荐答案
这似乎是您在使用cgi而不是 mod_php5 .共享内存区(SMA)用于两者,但仅保留后者的请求到请求.
This looks like you are using cgi rather than mod_php5. The shared memory area (SMA) is used for both, but it only persists request-to-request for the latter.
这篇关于OpCache不缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!