| Line | |
|---|
| 1 | [xcache-common] |
|---|
| 2 | ;; install as extension, make sure your extension_dir setting is correct |
|---|
| 3 | extension = xcache.so |
|---|
| 4 | ;; or install as zend extension, normally "$extension_dir/xcache.so" |
|---|
| 5 | ; zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so |
|---|
| 6 | |
|---|
| 7 | ; required for >=php5.1 if you turn xcache on |
|---|
| 8 | auto_globals_jit = Off |
|---|
| 9 | |
|---|
| 10 | [xcache] |
|---|
| 11 | ; ini only settings, all the values here is default |
|---|
| 12 | ; to disable: xcache.size=0 |
|---|
| 13 | ; to enable : xcache.size=any size > 0 and your system mmap allows |
|---|
| 14 | xcache.size = 0 |
|---|
| 15 | ; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor) |
|---|
| 16 | xcache.count = 1 |
|---|
| 17 | ; just a hash hints, you can always store count(entries) > slots |
|---|
| 18 | xcache.slots = 8K |
|---|
| 19 | |
|---|
| 20 | ; same as aboves but for variable cache |
|---|
| 21 | xcache.var_size = 0 |
|---|
| 22 | xcache.var_count = 1 |
|---|
| 23 | xcache.var_slots = 8K |
|---|
| 24 | |
|---|
| 25 | xcache.test = Off |
|---|
| 26 | ; N/A for /dev/zero |
|---|
| 27 | xcache.readonly_protection = Off |
|---|
| 28 | ; uncomment and change to "/tmp/xcache" for readonly protection |
|---|
| 29 | xcache.mmap_path = "/dev/zero" |
|---|
| 30 | ; leave it blank(disabled) or "/tmp/phpcore/" |
|---|
| 31 | ; make sure it's writable |
|---|
| 32 | xcache.coredump_directory = "" |
|---|
| 33 | |
|---|
| 34 | ; pre request settings |
|---|
| 35 | xcache.cacher = On |
|---|
| 36 | xcache.optimizer = Off |
|---|
Note: See
TracBrowser
for help on using the repository browser.