Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 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/20090626/xcache.so
  6.  
  7. [xcache.admin]
  8. xcache.admin.enable_auth = On
  9. ; Configure this to use admin pages
  10. xcache.admin.user = "sailerboy"
  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.  
  17. ; select low level shm/allocator scheme implemenation
  18. xcache.shm_scheme = "mmap"
  19. ; to disable: xcache.size=0
  20. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  21. xcache.size = 16M
  22. ; 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. ; 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 = 0M
  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.  
  40. xcache.test = Off
  41. ; N/A for /dev/zero
  42. xcache.readonly_protection = Off
  43. ; for *nix, xcache.mmap_path is a file path, not directory.
  44. ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
  45. ; 2 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.  
  49.  
  50. ; leave it blank(disabled) or "/tmp/phpcore/"
  51. ; make sure it's writable by php (without checking open_basedir)
  52. xcache.coredump_directory = ""
  53.  
  54. ; per request settings
  55. xcache.cacher = On
  56. xcache.stat = On
  57. xcache.optimizer = Off
  58.  
  59. [xcache.coverager]
  60. ; per request settings
  61. ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
  62. xcache.coverager = Off
  63.  
  64. ; ini only settings
  65. ; make sure it's readable (care open_basedir) by coverage viewer script
  66. ; requires xcache.coverager=On
  67. xcache.coveragedump_directory = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement