1
0
Fork 0
XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.3 KiB

;; <EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ֻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD> php.ini <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>Ч
[xcache-common]
;; <EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD> zend extension (<EFBFBD>Ƽ<EFBFBD>), ·<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> "$extension_dir/xcache.so"
zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
;; Windows ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
zend_extension_ts = c:/php/extensions/php_xcache.dll
;; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD>ɰ<EFBFBD> XCache <EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD> extension, ע<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> extension_dir <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ, <EFBFBD><EFBFBD><EFBFBD><EFBFBD> xcache.so <EFBFBD><EFBFBD><EFBFBD><EFBFBD> php_xcache.dll <EFBFBD>ŵ<EFBFBD><EFBFBD><EFBFBD>Ŀ¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
; extension = xcache.so
;; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> Win32 ϵͳ:
; extension = php_xcache.dll
[xcache.admin]
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
xcache.admin.pass = ""
[xcache]
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ķ<EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ini <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD>Ķ<EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>ֵ, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>
; select low level shm/allocator scheme implemenation
xcache.shm_scheme = "mmap"
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: xcache.size=0
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: xcache.size=64M ֮<EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD>>0<EFBFBD><EFBFBD>ֵ) ͬʱ<EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ mmap <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xcache.size = 0M
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ cpu <EFBFBD><EFBFBD> (cat /proc/cpuinfo |grep -c processor)
xcache.count = 1
; ֻ<EFBFBD>Ǹ<EFBFBD><EFBFBD>ο<EFBFBD>ֵ, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD><EFBFBD>ĵش洢<EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ(php<EFBFBD>ű<EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
xcache.slots = 8K
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD> ttl, 0=<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xcache.ttl = 0
; ɨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 0=<EFBFBD><EFBFBD>ɨ<EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>λ
xcache.gc_interval = 0
; ͬ<EFBFBD><EFBFBD>, ֻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xcache.var_size = 0M
xcache.var_count = 1
xcache.var_slots = 8K
; Ĭ<EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ini_set()
xcache.var_ttl = 0
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ttlֵ
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xcache.test = Off
; /dev/zero ʱ<EFBFBD><EFBFBD>Ч
xcache.readonly_protection = Off
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> *nix ϵͳ, xcache.mmap_path <EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>·<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼, (<EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>DZ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܴ<EFBFBD><EFBFBD><EFBFBD>).
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ReadonlyProtection, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "/tmp/xcache"
; 2 <EFBFBD><EFBFBD> php <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬһ<EFBFBD><EFBFBD> /tmp/xcache
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> Win32 ϵͳ, xcache.mmap_path=<EFBFBD><EFBFBD><EFBFBD><EFBFBD>MAP<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>·<EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD> XCache <EFBFBD><EFBFBD><EFBFBD>۱<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
xcache.mmap_path = "/dev/zero"
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> *nix ϵͳ
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "/tmp/phpcore/"
; ע<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼Ӧ<EFBFBD><EFBFBD><EFBFBD>ܱ<EFBFBD> php д<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD> (<EFBFBD><EFBFBD> open_basedir <EFBFBD>޹<EFBFBD>)
xcache.coredump_directory = ""
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off
[xcache.coverager]
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> xcache.coveragedump_directory <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD>Ϊ Off
xcache.coverager = Off
; <EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<EFBFBD>ܱ<EFBFBD> coverage viewer <EFBFBD>ű<EFBFBD><EFBFBD><EFBFBD>ȡ (ע<EFBFBD><EFBFBD> open_basedir)
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> xcache.coverager=On
xcache.coveragedump_directory = ""