source: branches/1.0/xcache.ini @ 168

Last change on this file since 168 was 168, checked in by moo, 8 years ago

example on how to load ts enabled extension

File size: 2.1 KB
RevLine 
[1]1[xcache-common]
[44]2;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
3zend_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
6zend_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]13auto_globals_jit = Off
14
[34]15[xcache.admin]
16xcache.admin.user = "mOo"
17; xcache.admin.pass = md5($your_password)
18xcache.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
24xcache.size  =                0M
[1]25; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor)
26xcache.count =                 1
[33]27; just a hash hints, you can always store count(items) > slots
[1]28xcache.slots =                8K
29
30; same as aboves but for variable cache
[167]31xcache.var_size  =            0M
[1]32xcache.var_count =             1
33xcache.var_slots =            8K
34
35xcache.test =                Off
36; N/A for /dev/zero
37xcache.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]42xcache.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]47xcache.coredump_directory =   ""
48
[33]49; per request settings
[1]50xcache.cacher =               On
51xcache.optimizer =           Off
[33]52
53[xcache.coverager]
54; ini only settings
[39]55; make sure it's readable (care open_basedir) coverage viewer script
56xcache.coveragedump_directory = "/tmp/pcov/"
57
58; per request settings, will be auto disabled if xcache.coveragedump_directory is not set
59xcache.coveragedumper         = Off
Note: See TracBrowser for help on using the repository browser.