source: trunk/xcache.ini @ 927

Last change on this file since 927 was 927, checked in by moo, 2 years ago

improve notes in ini

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1;; this is an example, it won't work unless properly configured into php.ini
2[xcache-common]
3;; WARNING: zend_extension* = *xcache* MUST be the first(above) of all zend_extension*=*
4;; using extension=xcache.so is not recommended
5
6;; non-windows example
7;; update xxx accordingly
8zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
9;; windows example:
10zend_extension_ts = c:/php/extensions/php_xcache.dll
11;; for newer PHP, _ts is removed, use the following line instead
12zend_extension = c:/php/extensions/php_xcache.dll
13
14[xcache.admin]
15xcache.admin.enable_auth = On
16xcache.admin.user = "mOo"
17; set xcache.admin.pass = md5($your_password)
18; login use $your_password
19xcache.admin.pass = ""
20
21[xcache]
22; ini only settings, all the values here is default unless explained
23
24; select low level shm/allocator scheme implemenation
25xcache.shm_scheme =        "mmap"
26; to disable: xcache.size=0
27; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
28xcache.size  =               60M
29; set to cpu count (cat /proc/cpuinfo |grep -c processor)
30xcache.count =                 1
31; just a hash hints, you can always store count(items) > slots
32xcache.slots =                8K
33; ttl of the cache item, 0=forever
34xcache.ttl   =                 0
35; interval of gc scanning expired items, 0=no scan, other values is in seconds
36xcache.gc_interval =           0
37
38; same as aboves but for variable cache
39xcache.var_size  =            4M
40xcache.var_count =             1
41xcache.var_slots =            8K
42; default value for $ttl parameter of xcache_*() functions
43xcache.var_ttl   =             0
44; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
45xcache.var_maxttl   =          0
46xcache.var_gc_interval =     300
47
48; N/A for /dev/zero
49xcache.readonly_protection = Off
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
53; for win32, xcache.mmap_path=anonymous map name, not file path
54xcache.mmap_path =    "/dev/zero"
55
56
57; leave it blank(disabled) or "/tmp/phpcore/"
58; make sure it's writable by php (open_basedir is not checked)
59xcache.coredump_directory =   ""
60
61; enable experimental documented features for each release if available
62xcache.experimental =        Off
63
64; per request settings. can ini_set, .htaccess etc
65xcache.cacher =               On
66xcache.stat   =               On
67xcache.optimizer =           Off
68
69[xcache.coverager]
70; enabling this feature will impact performance
71; enable only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
72
73; per request settings. can ini_set, .htaccess etc
74; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
75xcache.coverager =          Off
76
77; set in php ini file only
78; make sure it's readable (open_basedir is checked) by coverage viewer script
79xcache.coveragedump_directory = ""
Note: See TracBrowser for help on using the repository browser.