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
2006-09-15 11:36:10 +00:00
; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
2006-05-28 06:29:46 +00:00
;; 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-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
2006-09-15 11:16:33 +00:00
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size = 0M
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-09-17 04:28:49 +00:00
xcache.var_size = 0M
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
; 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
2006-09-13 12:22:57 +00:00
xcache.stat = On
2006-05-09 10:58:38 +00:00
xcache.optimizer = Off
2006-05-27 06:12:10 +00:00
2007-05-27 14:04:56 +00:00
xcache.test = Off
xcache.experimental = Off
2006-05-27 06:12:10 +00:00
[xcache.coverager]
2006-10-01 08:57:51 +00:00
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
xcache.coverager = Off
2006-05-27 12:01:25 +00:00
2006-10-01 08:57:51 +00:00
; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""