source: trunk/xcache.ini @ 114

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

gc expired items, new ini: xcache.ttl xcache.gc_interval xcache.var_ttl xcache.var_maxttl xcache.var_gc_interval

File size: 2.3 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
4;; For windows users, replace xcache.so with php_xcache.dll
5zend_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]12auto_globals_jit = Off
13
[34]14[xcache.admin]
15xcache.admin.user = "mOo"
16; xcache.admin.pass = md5($your_password)
17xcache.admin.pass = ""
18
[1]19[xcache]
[39]20; ini only settings, all the values here is default unless explained
[1]21; to disable: xcache.size=0
22; to enable : xcache.size=any size > 0 and your system mmap allows
23xcache.size =                  0
24; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor)
25xcache.count =                 1
[33]26; just a hash hints, you can always store count(items) > slots
[1]27xcache.slots =                8K
[114]28; ttl of the cache item, 0=forever
29xcache.ttl   =                 0
30; interval of gc scanning expired items, 0=no scan, other values is in seconds
31xcache.gc_interval =           0
[1]32
33; same as aboves but for variable cache
[114]34xcache.var_size  =             0
[1]35xcache.var_count =             1
36xcache.var_slots =            8K
[114]37; default ttl
38xcache.var_ttl   =             0
39xcache.var_maxttl   =          0
40xcache.var_gc_interval =     300
[1]41
42xcache.test =                Off
43; N/A for /dev/zero
44xcache.readonly_protection = Off
[39]45; for win32, xcache.mmap_path=anonymous map name, not file path
[1]46; uncomment and change to "/tmp/xcache" for readonly protection
[39]47; 2 group of php won't share the same /tmp/xcache
[101]48; for other OS, it's a file NOT directory
[1]49xcache.mmap_path =    "/dev/zero"
[39]50
51
[1]52; leave it blank(disabled) or "/tmp/phpcore/"
[33]53; make sure it's writable by php (without checking open_basedir)
[1]54xcache.coredump_directory =   ""
55
[33]56; per request settings
[1]57xcache.cacher =               On
58xcache.optimizer =           Off
[33]59
60[xcache.coverager]
61; ini only settings
[39]62; make sure it's readable (care open_basedir) coverage viewer script
63xcache.coveragedump_directory = "/tmp/pcov/"
64
65; per request settings, will be auto disabled if xcache.coveragedump_directory is not set
66xcache.coveragedumper         = Off
Note: See TracBrowser for help on using the repository browser.