Advertisement
Guest User

Untitled

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