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.

71 lines
2.5 KiB

  1. [xcache-common]
  2. ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
  3. zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
  4. ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
  5. ;; For windows users, replace xcache.so with php_xcache.dll
  6. zend_extension_ts = c:/php/extensions/php_xcache.dll
  7. ;; or install as extension, make sure your extension_dir setting is correct
  8. ; extension = xcache.so
  9. ;; or win32:
  10. ; extension = php_xcache.dll
  11. [xcache.admin]
  12. xcache.admin.enable_auth = On
  13. xcache.admin.user = "mOo"
  14. ; xcache.admin.pass = md5($your_password)
  15. xcache.admin.pass = ""
  16. [xcache]
  17. ; ini only settings, all the values here is default unless explained
  18. ; select low level shm/allocator scheme implemenation
  19. xcache.shm_scheme = "mmap"
  20. ; to disable: xcache.size=0
  21. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  22. xcache.size = 60M
  23. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  24. xcache.count = 1
  25. ; just a hash hints, you can always store count(items) > slots
  26. xcache.slots = 8K
  27. ; ttl of the cache item, 0=forever
  28. xcache.ttl = 0
  29. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  30. xcache.gc_interval = 0
  31. ; same as aboves but for variable cache
  32. xcache.var_size = 4M
  33. xcache.var_count = 1
  34. xcache.var_slots = 8K
  35. ; default ttl
  36. xcache.var_ttl = 0
  37. xcache.var_maxttl = 0
  38. xcache.var_gc_interval = 300
  39. xcache.test = Off
  40. ; N/A for /dev/zero
  41. xcache.readonly_protection = Off
  42. ; for *nix, xcache.mmap_path is a file path, not directory.
  43. ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
  44. ; 2 group of php won't share the same /tmp/xcache
  45. ; for win32, xcache.mmap_path=anonymous map name, not file path
  46. xcache.mmap_path = "/dev/zero"
  47. ; leave it blank(disabled) or "/tmp/phpcore/"
  48. ; make sure it's writable by php (without checking open_basedir)
  49. xcache.coredump_directory = ""
  50. ; per request settings
  51. xcache.cacher = On
  52. xcache.stat = On
  53. xcache.optimizer = Off
  54. [xcache.coverager]
  55. ; per request settings
  56. ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
  57. xcache.coverager = Off
  58. ; ini only settings
  59. ; make sure it's readable (care open_basedir) by coverage viewer script
  60. ; requires xcache.coverager=On
  61. xcache.coveragedump_directory = ""