我在arch linux(在树莓上)上安装了xcache(php-xcache-3.1.0-1),但是我没有让操作码缓存工作。我的xcache.ini看起来像:
xcache.cacher = On
xcache.size = 32M
xcache.var_size = 32M
从它的文档中,这应该足够了。确实'var_size> 0'启用变量缓存,但仍禁用操作码缓存。有人有想法吗?
从'php -i'我得到:
XCache Cacher
XCache Cacher Module => enabled
Readonly Protection => disabled
Page Request Time => 2013-12-13 13:57:50
Cache Init Time => 2013-12-13 13:57:50
Cache Instance Id => 1299
Opcode Cache => disabled
Variable Cache => enabled, 33,554,432 bytes, 1 split(s), with 8192 slots each
Shared Memory Schemes => mmap
Directive => Local Value => Master Value
xcache.admin.enable_auth => On => On
xcache.allocator => bestfit => bestfit
xcache.cacher => On => On
xcache.count => 1 => 1
xcache.gc_interval => 0 => 0
xcache.mmap_path => /dev/zero => /dev/zero
xcache.readonly_protection => Off => Off
xcache.shm_scheme => mmap => mmap
xcache.size => 32M => 32M
xcache.slots => 8K => 8K
xcache.stat => On => On
xcache.ttl => 0 => 0
xcache.var_allocator => bestfit => bestfit
xcache.var_count => 1 => 1
xcache.var_gc_interval => 120 => 120
xcache.var_maxttl => 0 => 0
xcache.var_namespace => no value => no value
xcache.var_namespace_mode => 0 => 0
xcache.var_size => 32M => 32M
xcache.var_slots => 8K => 8K
xcache.var_ttl => 0 => 0