XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

85 lines
3.0 KiB

  1. ;; this is an example, it won't work unless properly configured into php.ini
  2. [xcache-common]
  3. ;; non-Windows example:
  4. extension = xcache.so
  5. ;; Windows example:
  6. ; extension = php_xcache.dll
  7. [xcache.admin]
  8. xcache.admin.enable_auth = On
  9. ; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
  10. xcache.admin.user = "mOo"
  11. xcache.admin.pass = "md5 encrypted password"
  12. [xcache]
  13. ; ini only settings, all the values here is default unless explained
  14. ; select low level shm implemenation
  15. xcache.shm_scheme = "mmap"
  16. ; to disable: xcache.size=0
  17. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  18. xcache.size = 60M
  19. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  20. xcache.count = 1
  21. ; just a hash hints, you can always store count(items) > slots
  22. xcache.slots = 8K
  23. ; ttl of the cache item, 0=forever
  24. xcache.ttl = 0
  25. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  26. xcache.gc_interval = 0
  27. ; same as aboves but for variable cache
  28. xcache.var_size = 4M
  29. xcache.var_count = 1
  30. xcache.var_slots = 8K
  31. ; default value for $ttl parameter of xcache_*() functions
  32. xcache.var_ttl = 0
  33. ; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
  34. xcache.var_maxttl = 0
  35. xcache.var_gc_interval = 300
  36. ; mode:0, const string specified by xcache.var_namespace
  37. ; mode:1, $_SERVER[xcache.var_namespace]
  38. ; mode:2, uid or gid (specified by xcache.var_namespace)
  39. xcache.var_namespace_mode = 0
  40. xcache.var_namespace = ""
  41. ; N/A for /dev/zero
  42. xcache.readonly_protection = Off
  43. ; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
  44. ; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
  45. ; different process group of php won't share the same /tmp/xcache
  46. ; for win32, xcache.mmap_path=anonymous map name, not file path
  47. xcache.mmap_path = "/dev/zero"
  48. ; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)
  49. xcache.coredump_directory = ""
  50. ; Windows only. leave it as 0 (default) until you're told by XCache dev
  51. xcache.coredump_type = 0
  52. ; disable cache after crash
  53. xcache.disable_on_crash = Off
  54. ; enable experimental documented features for each release if available
  55. xcache.experimental = Off
  56. ; per request settings. can ini_set, .htaccess etc
  57. xcache.cacher = On
  58. xcache.stat = On
  59. xcache.optimizer = Off
  60. [xcache.coverager]
  61. ; enabling this feature will impact performance
  62. ; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
  63. ; per request settings. can ini_set, .htaccess etc
  64. ; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
  65. xcache.coverager = Off
  66. xcache.coverager_autostart = On
  67. ; set in php ini file only
  68. ; make sure it's readable (open_basedir is checked) by coverage viewer script
  69. xcache.coveragedump_directory = ""