| [1] | 1 | [xcache-common] |
|---|
| [44] | 2 | ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" |
|---|
| 3 | zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so |
|---|
| [168] | 4 | ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so |
|---|
| [44] | 5 | ;; For windows users, replace xcache.so with php_xcache.dll |
|---|
| 6 | zend_extension_ts = c:/php/extensions/php_xcache.dll |
|---|
| 7 | ;; or install as extension, make sure your extension_dir setting is correct |
|---|
| 8 | ; extension = xcache.so |
|---|
| 9 | ;; or win32: |
|---|
| 10 | ; extension = php_xcache.dll |
|---|
| [1] | 11 | |
|---|
| [44] | 12 | ; required for >=php5.1 if you turn XCache on |
|---|
| [1] | 13 | auto_globals_jit = Off |
|---|
| 14 | |
|---|
| [34] | 15 | [xcache.admin] |
|---|
| 16 | xcache.admin.user = "mOo" |
|---|
| 17 | ; xcache.admin.pass = md5($your_password) |
|---|
| 18 | xcache.admin.pass = "" |
|---|
| 19 | |
|---|
| [1] | 20 | [xcache] |
|---|
| [39] | 21 | ; ini only settings, all the values here is default unless explained |
|---|
| [1] | 22 | ; to disable: xcache.size=0 |
|---|
| [167] | 23 | ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows |
|---|
| 24 | xcache.size = 0M |
|---|
| [1] | 25 | ; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor) |
|---|
| 26 | xcache.count = 1 |
|---|
| [33] | 27 | ; just a hash hints, you can always store count(items) > slots |
|---|
| [1] | 28 | xcache.slots = 8K |
|---|
| 29 | |
|---|
| 30 | ; same as aboves but for variable cache |
|---|
| [167] | 31 | xcache.var_size = 0M |
|---|
| [1] | 32 | xcache.var_count = 1 |
|---|
| 33 | xcache.var_slots = 8K |
|---|
| 34 | |
|---|
| 35 | xcache.test = Off |
|---|
| 36 | ; N/A for /dev/zero |
|---|
| 37 | xcache.readonly_protection = Off |
|---|
| [39] | 38 | ; for win32, xcache.mmap_path=anonymous map name, not file path |
|---|
| [1] | 39 | ; uncomment and change to "/tmp/xcache" for readonly protection |
|---|
| [39] | 40 | ; 2 group of php won't share the same /tmp/xcache |
|---|
| [101] | 41 | ; for other OS, it's a file NOT directory |
|---|
| [1] | 42 | xcache.mmap_path = "/dev/zero" |
|---|
| [39] | 43 | |
|---|
| 44 | |
|---|
| [1] | 45 | ; leave it blank(disabled) or "/tmp/phpcore/" |
|---|
| [33] | 46 | ; make sure it's writable by php (without checking open_basedir) |
|---|
| [1] | 47 | xcache.coredump_directory = "" |
|---|
| 48 | |
|---|
| [33] | 49 | ; per request settings |
|---|
| [1] | 50 | xcache.cacher = On |
|---|
| 51 | xcache.optimizer = Off |
|---|
| [33] | 52 | |
|---|
| 53 | [xcache.coverager] |
|---|
| 54 | ; ini only settings |
|---|
| [39] | 55 | ; make sure it's readable (care open_basedir) coverage viewer script |
|---|
| 56 | xcache.coveragedump_directory = "/tmp/pcov/" |
|---|
| 57 | |
|---|
| 58 | ; per request settings, will be auto disabled if xcache.coveragedump_directory is not set |
|---|
| 59 | xcache.coveragedumper = Off |
|---|