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