source: trunk/xcache.ini @ 536

Last change on this file since 536 was 536, checked in by moo, 7 years ago

64M of shm is a good choice

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