source: trunk/xcache.ini

Last change on this file was 1375, checked in by moo, 12 months ago

admin: make mkpassword.php easier for noob

  • 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;; non-Windows example:
4extension = xcache.so
5;; Windows example:
6; extension = php_xcache.dll
7
8[xcache.admin]
9xcache.admin.enable_auth = On
10
11; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
12xcache.admin.user = "mOo"
13xcache.admin.pass = "md5 encrypted password"
14
15[xcache]
16; ini only settings, all the values here is default unless explained
17
18; select low level shm implemenation
19xcache.shm_scheme =        "mmap"
20; to disable: xcache.size=0
21; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
22xcache.size  =               60M
23; set to cpu count (cat /proc/cpuinfo |grep -c processor)
24xcache.count =                 1
25; just a hash hints, you can always store count(items) > slots
26xcache.slots =                8K
27; ttl of the cache item, 0=forever
28xcache.ttl   =                 0
29; interval of gc scanning expired items, 0=no scan, other values is in seconds
30xcache.gc_interval =           0
31
32; same as aboves but for variable cache
33xcache.var_size  =            4M
34xcache.var_count =             1
35xcache.var_slots =            8K
36; default value for $ttl parameter of xcache_*() functions
37xcache.var_ttl   =             0
38; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
39xcache.var_maxttl   =          0
40xcache.var_gc_interval =     300
41
42; mode:0, const string specified by xcache.var_namespace
43; mode:1, $_SERVER[xcache.var_namespace]
44; mode:2, uid or gid (specified by xcache.var_namespace)
45xcache.var_namespace_mode =    0
46xcache.var_namespace =        ""
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; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)
58xcache.coredump_directory =   ""
59; Windows only. leave it as 0 (default) until you're told by XCache dev
60xcache.coredump_type =         0
61
62; disable cache after crash
63xcache.disable_on_crash =    Off
64
65; enable experimental documented features for each release if available
66xcache.experimental =        Off
67
68; per request settings. can ini_set, .htaccess etc
69xcache.cacher =               On
70xcache.stat   =               On
71xcache.optimizer =           Off
72
73[xcache.coverager]
74; enabling this feature will impact performance
75; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
76
77; per request settings. can ini_set, .htaccess etc
78; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
79xcache.coverager =           Off
80xcache.coverager_autostart =  On
81
82; set in php ini file only
83; make sure it's readable (open_basedir is checked) by coverage viewer script
84xcache.coveragedump_directory = ""
Note: See TracBrowser for help on using the repository browser.