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.

59 lines
2.1 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. ; required for >=php5.1 if you turn XCache on
  12. auto_globals_jit = Off
  13. [xcache.admin]
  14. xcache.admin.user = "mOo"
  15. ; xcache.admin.pass = md5($your_password)
  16. xcache.admin.pass = ""
  17. [xcache]
  18. ; ini only settings, all the values here is default unless explained
  19. ; to disable: xcache.size=0
  20. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  21. xcache.size = 0M
  22. ; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor)
  23. xcache.count = 1
  24. ; just a hash hints, you can always store count(items) > slots
  25. xcache.slots = 8K
  26. ; same as aboves but for variable cache
  27. xcache.var_size = 0M
  28. xcache.var_count = 1
  29. xcache.var_slots = 8K
  30. xcache.test = Off
  31. ; N/A for /dev/zero
  32. xcache.readonly_protection = Off
  33. ; for win32, xcache.mmap_path=anonymous map name, not file path
  34. ; uncomment and change to "/tmp/xcache" for readonly protection
  35. ; 2 group of php won't share the same /tmp/xcache
  36. ; for other OS, it's a file NOT directory
  37. xcache.mmap_path = "/dev/zero"
  38. ; leave it blank(disabled) or "/tmp/phpcore/"
  39. ; make sure it's writable by php (without checking open_basedir)
  40. xcache.coredump_directory = ""
  41. ; per request settings
  42. xcache.cacher = On
  43. xcache.optimizer = Off
  44. [xcache.coverager]
  45. ; ini only settings
  46. ; make sure it's readable (care open_basedir) coverage viewer script
  47. xcache.coveragedump_directory = "/tmp/pcov/"
  48. ; per request settings, will be auto disabled if xcache.coveragedump_directory is not set
  49. xcache.coveragedumper = Off