2006-05-09 10:58:38 +00:00
|
|
|
[xcache-common]
|
2006-05-28 06:29:46 +00:00
|
|
|
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
|
|
|
|
zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
|
|
|
|
;; For windows users, replace xcache.so with php_xcache.dll
|
|
|
|
zend_extension_ts = c:/php/extensions/php_xcache.dll
|
|
|
|
;; or install as extension, make sure your extension_dir setting is correct
|
|
|
|
; extension = xcache.so
|
|
|
|
;; or win32:
|
|
|
|
; extension = php_xcache.dll
|
2006-05-09 10:58:38 +00:00
|
|
|
|
2006-05-28 06:29:46 +00:00
|
|
|
; required for >=php5.1 if you turn XCache on
|
2006-05-09 10:58:38 +00:00
|
|
|
auto_globals_jit = Off
|
|
|
|
|
2006-05-27 06:53:32 +00:00
|
|
|
[xcache.admin]
|
|
|
|
xcache.admin.user = "mOo"
|
|
|
|
; xcache.admin.pass = md5($your_password)
|
|
|
|
xcache.admin.pass = ""
|
|
|
|
|
2006-05-09 10:58:38 +00:00
|
|
|
[xcache]
|
2006-05-27 12:01:25 +00:00
|
|
|
; ini only settings, all the values here is default unless explained
|
2006-09-13 11:59:57 +00:00
|
|
|
|
|
|
|
; select low level shm/allocator scheme implemenation
|
|
|
|
xcache.shm_scheme = "mmap"
|
2006-05-09 10:58:38 +00:00
|
|
|
; to disable: xcache.size=0
|
|
|
|
; to enable : xcache.size=any size > 0 and your system mmap allows
|
|
|
|
xcache.size = 0
|
2006-09-03 03:49:13 +00:00
|
|
|
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.count = 1
|
2006-05-27 06:12:10 +00:00
|
|
|
; just a hash hints, you can always store count(items) > slots
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.slots = 8K
|
2006-08-30 00:31:03 +00:00
|
|
|
; ttl of the cache item, 0=forever
|
|
|
|
xcache.ttl = 0
|
|
|
|
; interval of gc scanning expired items, 0=no scan, other values is in seconds
|
|
|
|
xcache.gc_interval = 0
|
2006-05-09 10:58:38 +00:00
|
|
|
|
|
|
|
; same as aboves but for variable cache
|
2006-08-30 00:31:03 +00:00
|
|
|
xcache.var_size = 0
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.var_count = 1
|
|
|
|
xcache.var_slots = 8K
|
2006-08-30 00:31:03 +00:00
|
|
|
; default ttl
|
|
|
|
xcache.var_ttl = 0
|
|
|
|
xcache.var_maxttl = 0
|
|
|
|
xcache.var_gc_interval = 300
|
2006-05-09 10:58:38 +00:00
|
|
|
|
|
|
|
xcache.test = Off
|
|
|
|
; N/A for /dev/zero
|
|
|
|
xcache.readonly_protection = Off
|
2006-08-30 12:07:38 +00:00
|
|
|
; for *nix, xcache.mmap_path is a file path, not directory.
|
|
|
|
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
|
2006-05-27 12:01:25 +00:00
|
|
|
; 2 group of php won't share the same /tmp/xcache
|
2006-08-30 12:07:38 +00:00
|
|
|
; for win32, xcache.mmap_path=anonymous map name, not file path
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.mmap_path = "/dev/zero"
|
2006-05-27 12:01:25 +00:00
|
|
|
|
|
|
|
|
2006-05-09 10:58:38 +00:00
|
|
|
; leave it blank(disabled) or "/tmp/phpcore/"
|
2006-05-27 06:12:10 +00:00
|
|
|
; make sure it's writable by php (without checking open_basedir)
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.coredump_directory = ""
|
|
|
|
|
2006-05-27 06:12:10 +00:00
|
|
|
; per request settings
|
2006-05-09 10:58:38 +00:00
|
|
|
xcache.cacher = On
|
|
|
|
xcache.optimizer = Off
|
2006-05-27 06:12:10 +00:00
|
|
|
|
|
|
|
[xcache.coverager]
|
|
|
|
; ini only settings
|
2006-05-27 12:01:25 +00:00
|
|
|
; make sure it's readable (care open_basedir) coverage viewer script
|
|
|
|
xcache.coveragedump_directory = "/tmp/pcov/"
|
|
|
|
|
|
|
|
; per request settings, will be auto disabled if xcache.coveragedump_directory is not set
|
|
|
|
xcache.coveragedumper = Off
|