OPcache不缓存任何内容

时间:2019-10-04 21:18:57

标签: php centos fastcgi opcache

我有安装了Nginx + php-fpm和OpenCart 2 CMS的VPS。 php 7.3

我有0个缓存脚本和0个缓存键。 OPcache不缓存任何内容,我尝试了所有操作,但仍然无法正常工作

我从phpinfo()的输出:

Zend OPcache
Opcode Caching  Up and Running
Optimization    Enabled
SHM Cache   Enabled
File Cache  Disabled
Startup OK
Shared memory model mmap
Cache hits  0
Cache misses    0
Used memory 8770936
Free memory 125446792
Wasted memory   0
Interned Strings Used memory    413728
Interned Strings Free memory    5877304
Cached scripts  0
Cached keys 0
Max keys    7963
OOM restarts    0
Hash keys restarts  0
Manual restarts 0

我的opcache配置:

Directive   Local Value Master Value
opcache.blacklist_filename  /etc/php.d/opcache*.blacklist   /etc/php.d/opcache*.blacklist
opcache.consistency_checks  0   0
opcache.dups_fix    Off Off
opcache.enable  On  On
opcache.enable_cli  Off Off
opcache.enable_file_override    Off Off
opcache.error_log   /tmp/opcache    /tmp/opcache
opcache.file_cache  no value    no value
opcache.file_cache_consistency_checks   1   1
opcache.file_cache_only 0   0
opcache.file_update_protection  2   2
opcache.force_restart_timeout   180 180
opcache.huge_code_pages Off Off
opcache.interned_strings_buffer 8   8
opcache.lockfile_path   /tmp    /tmp
opcache.log_verbosity_level 1   1
opcache.max_accelerated_files   4000    4000
opcache.max_file_size   0   0
opcache.max_wasted_percentage   5   5
opcache.memory_consumption  128 128
opcache.opt_debug_level 0   0
opcache.optimization_level  0x7FFEBFFF  0x7FFEBFFF
opcache.preferred_memory_model  no value    no value
opcache.protect_memory  0   0
opcache.restrict_api    no value    no value
opcache.revalidate_freq 2   2
opcache.revalidate_path Off Off
opcache.save_comments   1   1
opcache.use_cwd On  On
opcache.validate_permission Off Off
opcache.validate_root   Off Off
opcache.validate_timestamps On  On

/etc/php.d/opcache*.blacklist已清除

1 个答案:

答案 0 :(得分:1)

问题出在ioncube加载器中。它在10.3.8版本中有一个错误。