| [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 |
|---|
| 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 |
|---|
| [1] | 10 | |
|---|
| [44] | 11 | ; required for >=php5.1 if you turn XCache on |
|---|
| [1] | 12 | auto_globals_jit = Off |
|---|
| 13 | |
|---|
| [34] | 14 | [xcache.admin] |
|---|
| 15 | xcache.admin.user = "mOo" |
|---|
| 16 | ; xcache.admin.pass = md5($your_password) |
|---|
| 17 | xcache.admin.pass = "" |
|---|
| 18 | |
|---|
| [1] | 19 | [xcache] |
|---|
| [39] | 20 | ; ini only settings, all the values here is default unless explained |
|---|
| [162] | 21 | |
|---|
| 22 | ; select low level shm/allocator scheme implemenation |
|---|
| 23 | xcache.shm_scheme = "mmap" |
|---|
| [1] | 24 | ; to disable: xcache.size=0 |
|---|
| 25 | ; to enable : xcache.size=any size > 0 and your system mmap allows |
|---|
| 26 | xcache.size = 0 |
|---|
| [127] | 27 | ; set to cpu count (cat /proc/cpuinfo |grep -c processor) |
|---|
| [1] | 28 | xcache.count = 1 |
|---|
| [33] | 29 | ; just a hash hints, you can always store count(items) > slots |
|---|
| [1] | 30 | xcache.slots = 8K |
|---|
| [114] | 31 | ; ttl of the cache item, 0=forever |
|---|
| 32 | xcache.ttl = 0 |
|---|
| 33 | ; interval of gc scanning expired items, 0=no scan, other values is in seconds |
|---|
| 34 | xcache.gc_interval = 0 |
|---|
| [1] | 35 | |
|---|
| 36 | ; same as aboves but for variable cache |
|---|
| [114] | 37 | xcache.var_size = 0 |
|---|
| [1] | 38 | xcache.var_count = 1 |
|---|
| 39 | xcache.var_slots = 8K |
|---|
| [114] | 40 | ; default ttl |
|---|
| 41 | xcache.var_ttl = 0 |
|---|
| 42 | xcache.var_maxttl = 0 |
|---|
| 43 | xcache.var_gc_interval = 300 |
|---|
| [1] | 44 | |
|---|
| 45 | xcache.test = Off |
|---|
| 46 | ; N/A for /dev/zero |
|---|
| 47 | xcache.readonly_protection = Off |
|---|
| [115] | 48 | ; for *nix, xcache.mmap_path is a file path, not directory. |
|---|
| 49 | ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection |
|---|
| 50 | ; 2 group of php won't share the same /tmp/xcache |
|---|
| [39] | 51 | ; for win32, xcache.mmap_path=anonymous map name, not file path |
|---|
| [1] | 52 | xcache.mmap_path = "/dev/zero" |
|---|
| [39] | 53 | |
|---|
| 54 | |
|---|
| [1] | 55 | ; leave it blank(disabled) or "/tmp/phpcore/" |
|---|
| [33] | 56 | ; make sure it's writable by php (without checking open_basedir) |
|---|
| [1] | 57 | xcache.coredump_directory = "" |
|---|
| 58 | |
|---|
| [33] | 59 | ; per request settings |
|---|
| [1] | 60 | xcache.cacher = On |
|---|
| [165] | 61 | xcache.stat = On |
|---|
| [1] | 62 | xcache.optimizer = Off |
|---|
| [33] | 63 | |
|---|
| 64 | [xcache.coverager] |
|---|
| 65 | ; ini only settings |
|---|
| [39] | 66 | ; make sure it's readable (care open_basedir) coverage viewer script |
|---|
| 67 | xcache.coveragedump_directory = "/tmp/pcov/" |
|---|
| 68 | |
|---|
| 69 | ; per request settings, will be auto disabled if xcache.coveragedump_directory is not set |
|---|
| 70 | xcache.coveragedumper = Off |
|---|