| [927] | 1 | ;; this is an example, it won't work unless properly configured into php.ini |
|---|
| [1] | 2 | [xcache-common] |
|---|
| [1026] | 3 | ;; non-Windows example: |
|---|
| 4 | extension = xcache.so |
|---|
| 5 | ;; Windows example: |
|---|
| 6 | ; extension = php_xcache.dll |
|---|
| [927] | 7 | |
|---|
| [34] | 8 | [xcache.admin] |
|---|
| [895] | 9 | xcache.admin.enable_auth = On |
|---|
| [34] | 10 | xcache.admin.user = "mOo" |
|---|
| [927] | 11 | ; set xcache.admin.pass = md5($your_password) |
|---|
| 12 | ; login use $your_password |
|---|
| [34] | 13 | xcache.admin.pass = "" |
|---|
| 14 | |
|---|
| [1] | 15 | [xcache] |
|---|
| [39] | 16 | ; ini only settings, all the values here is default unless explained |
|---|
| [162] | 17 | |
|---|
| 18 | ; select low level shm/allocator scheme implemenation |
|---|
| 19 | xcache.shm_scheme = "mmap" |
|---|
| [1] | 20 | ; to disable: xcache.size=0 |
|---|
| [167] | 21 | ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows |
|---|
| [536] | 22 | xcache.size = 60M |
|---|
| [127] | 23 | ; set to cpu count (cat /proc/cpuinfo |grep -c processor) |
|---|
| [1] | 24 | xcache.count = 1 |
|---|
| [33] | 25 | ; just a hash hints, you can always store count(items) > slots |
|---|
| [1] | 26 | xcache.slots = 8K |
|---|
| [114] | 27 | ; ttl of the cache item, 0=forever |
|---|
| 28 | xcache.ttl = 0 |
|---|
| 29 | ; interval of gc scanning expired items, 0=no scan, other values is in seconds |
|---|
| 30 | xcache.gc_interval = 0 |
|---|
| [1] | 31 | |
|---|
| 32 | ; same as aboves but for variable cache |
|---|
| [536] | 33 | xcache.var_size = 4M |
|---|
| [1] | 34 | xcache.var_count = 1 |
|---|
| 35 | xcache.var_slots = 8K |
|---|
| [927] | 36 | ; default value for $ttl parameter of xcache_*() functions |
|---|
| [114] | 37 | xcache.var_ttl = 0 |
|---|
| [927] | 38 | ; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited |
|---|
| [114] | 39 | xcache.var_maxttl = 0 |
|---|
| 40 | xcache.var_gc_interval = 300 |
|---|
| [1] | 41 | |
|---|
| [1147] | 42 | ; mode:0, const string specified by xcache.var_namespace |
|---|
| 43 | ; mode:1, $_SERVER[xcache.var_namespace] |
|---|
| 44 | ; mode:2, uid or gid (specified by xcache.var_namespace) |
|---|
| 45 | xcache.var_namespace_mode = 0 |
|---|
| 46 | xcache.var_namespace = "" |
|---|
| 47 | |
|---|
| [1] | 48 | ; N/A for /dev/zero |
|---|
| 49 | xcache.readonly_protection = Off |
|---|
| [927] | 50 | ; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite) |
|---|
| 51 | ; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection |
|---|
| 52 | ; different process group of php won't share the same /tmp/xcache |
|---|
| [39] | 53 | ; for win32, xcache.mmap_path=anonymous map name, not file path |
|---|
| [1] | 54 | xcache.mmap_path = "/dev/zero" |
|---|
| [39] | 55 | |
|---|
| 56 | |
|---|
| [1] | 57 | ; leave it blank(disabled) or "/tmp/phpcore/" |
|---|
| [849] | 58 | ; make sure it's writable by php (open_basedir is not checked) |
|---|
| [1] | 59 | xcache.coredump_directory = "" |
|---|
| [1106] | 60 | ; disable cache after crash |
|---|
| [979] | 61 | xcache.disable_on_crash = Off |
|---|
| [1] | 62 | |
|---|
| [927] | 63 | ; enable experimental documented features for each release if available |
|---|
| 64 | xcache.experimental = Off |
|---|
| 65 | |
|---|
| 66 | ; per request settings. can ini_set, .htaccess etc |
|---|
| [1] | 67 | xcache.cacher = On |
|---|
| [165] | 68 | xcache.stat = On |
|---|
| [1] | 69 | xcache.optimizer = Off |
|---|
| [33] | 70 | |
|---|
| [927] | 71 | [xcache.coverager] |
|---|
| 72 | ; enabling this feature will impact performance |
|---|
| [1117] | 73 | ; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value" |
|---|
| [399] | 74 | |
|---|
| [927] | 75 | ; per request settings. can ini_set, .htaccess etc |
|---|
| 76 | ; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions |
|---|
| [1117] | 77 | xcache.coverager = Off |
|---|
| 78 | xcache.coverager_autostart = On |
|---|
| [204] | 79 | |
|---|
| [927] | 80 | ; set in php ini file only |
|---|
| [849] | 81 | ; make sure it's readable (open_basedir is checked) by coverage viewer script |
|---|
| [204] | 82 | xcache.coveragedump_directory = "" |
|---|