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.

75 lines
2.4 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> windows <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
extension = xcache.so
;; Windows ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
; extension = php_xcache.dll
[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
; <EFBFBD><EFBFBD>¼ʹ<EFBFBD><EFBFBD> $your_password
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 = 60M
; <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 = 4M
xcache.var_count = 1
xcache.var_slots = 8K
; xcache_*() <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ttl <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>ֵ
xcache.var_ttl = 0
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> xcache_*() <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ttl <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 0=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
; /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><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ReadonlyProtection, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD> "/dev/*", <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "/tmp/xcache"
; <EFBFBD><EFBFBD>ͬ php <EFBFBD><EFBFBD><EFBFBD><EFBFBD><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 = ""
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD>Թ<EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
xcache.experimental = Off
; per request settings. <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ini_set, .htaccess <EFBFBD><EFBFBD>
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off
[xcache.coverager]
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>󽵵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> xcache.coverager == On && xcache.coveragedump_directory == "<EFBFBD>ǿ<EFBFBD>ֵ" ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܲŻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
; per request settings. <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ini_set, .htaccess <EFBFBD><EFBFBD>
; <EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ɼ<EFBFBD><EFBFBD>Լ<EFBFBD> xcache_coverager_start/stop/get/clean() <EFBFBD>Ⱥ<EFBFBD><EFBFBD><EFBFBD>
xcache.coverager = Off
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> php ini <EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
; <EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<EFBFBD>ܱ<EFBFBD> coverage viewer <EFBFBD>ű<EFBFBD><EFBFBD><EFBFBD>ȡ (ע<EFBFBD><EFBFBD> open_basedir)
xcache.coveragedump_directory = ""