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.
36 lines
1.2 KiB
36 lines
1.2 KiB
[xcache-common] |
|
;; install as extension, make sure your extension_dir setting is correct |
|
extension = xcache.so |
|
;; or install as zend extension, normally "$extension_dir/xcache.so" |
|
; zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so |
|
|
|
; required for >=php5.1 if you turn xcache on |
|
auto_globals_jit = Off |
|
|
|
[xcache] |
|
; ini only settings, all the values here is default |
|
; to disable: xcache.size=0 |
|
; to enable : xcache.size=any size > 0 and your system mmap allows |
|
xcache.size = 0 |
|
; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor) |
|
xcache.count = 1 |
|
; just a hash hints, you can always store count(entries) > slots |
|
xcache.slots = 8K |
|
|
|
; same as aboves but for variable cache |
|
xcache.var_size = 0 |
|
xcache.var_count = 1 |
|
xcache.var_slots = 8K |
|
|
|
xcache.test = Off |
|
; N/A for /dev/zero |
|
xcache.readonly_protection = Off |
|
; uncomment and change to "/tmp/xcache" for readonly protection |
|
xcache.mmap_path = "/dev/zero" |
|
; leave it blank(disabled) or "/tmp/phpcore/" |
|
; make sure it's writable |
|
xcache.coredump_directory = "" |
|
|
|
; pre request settings |
|
xcache.cacher = On |
|
xcache.optimizer = Off
|
|
|