Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. # configuration for php Xcache module
  2.  
  3. [xcache-common]
  4. ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
  5. zend_extension = /usr/lib/php5/20060613/xcache.so
  6.  
  7. [xcache.admin]
  8. xcache.admin.enable_auth = On
  9. # Configure this to use admin pages
  10. ; xcache.admin.user = "mOo"
  11. ; xcache.admin.pass = md5($your_password)
  12. ; xcache.admin.pass = ""
  13.  
  14. [xcache]
  15. ; ini only settings, all the values here is default unless explained
  16. auto_globals_jit="0"
  17. ; select low level shm/allocator scheme implemenation
  18. xcache.shm_scheme = "mmap"
  19. ; able: xcache.size=0
  20. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  21. xcache.size = 0
  22. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  23. xcache.count = 2
  24. ; just a hash hints, you can always store count(items) > slots
  25. xcache.slots = 8K
  26. ; ttl of the cache item, 0=forever
  27. xcache.ttl = 0
  28. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  29. xcache.gc_interval = 0
  30.  
  31. ; same as aboves but for variable cache
  32. xcache.var_size = 32M
  33. xcache.var_count = 2
  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.  
  40. xcache.test = Off
  41. ; N/A for /dev/zero
  42. xcache.readonly_protection = On
  43. xcache.readonly_protection = "1"
  44. ; for *nix, xcache.mmap_path is a file path, not directory.
  45. ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
  46. ; 2 group of php won't share the same /tmp/xcache
  47. ; for win32, xcache.mmap_path=anonymous map name, not file path
  48. xcache.mmap_path = "/dev/zero"
  49.  
  50.  
  51. ; leave it blank(disabled) or "/tmp/phpcore/"
  52. ; make sure it's writable by php (without checking open_basedir)
  53. xcache.coredump_directory = ""
  54.  
  55. ; per request settings
  56. xcache.cacher = On
  57. xcache.stat = On
  58. xcache.optimizer = On
  59.  
  60. [xcache.coverager]
  61. ; per request settings
  62. ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
  63. xcache.coverager = Off
  64.  
  65. ; ini only settings
  66. ; make sure it's readable (care open_basedir) by coverage viewer script
  67. ; requires xcache.coverager=On
  68. xcache.coveragedump_directory = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement