Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1.  
  2. [xcache-common]
  3. zend_extension = /usr/lib/php/modules/xcache.so
  4.  
  5. [xcache.admin]
  6. xcache.admin.user = "admin"
  7. ;how to create md5 pwd: echo -n "password"| md5sum
  8. xcache.admin.pass = "xxx"
  9.  
  10.  
  11. [xcache]
  12. ; Change xcache.size to tune the size of the opcode cache
  13. ; to disable: xcache.size=0
  14. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  15. ; someone said, if >=64 will get problem
  16.  
  17. xcache.size = 64M
  18. xcache.shm_scheme = "mmap"
  19. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  20.  
  21. xcache.count = 1
  22. ; just a hash hints, you can always store count(items) > slots
  23.  
  24. xcache.slots = 8K
  25. ; ttl of the cache item, 0=forever
  26.  
  27. xcache.ttl = 0
  28. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  29.  
  30. xcache.gc_interval = 0
  31.  
  32. ; Change xcache.var_size to adjust the size of variable cache
  33. ; same as aboves but for variable cache, if you have not used xcache function in script,forget it
  34.  
  35. xcache.var_size = 4M
  36. xcache.var_count = 1
  37. xcache.var_slots = 4K
  38. xcache.var_ttl = 0
  39. xcache.var_maxttl = 0
  40. xcache.var_gc_interval = 300
  41.  
  42. xcache.test = Off
  43. xcache.readonly_protection = On
  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.  
  49. xcache.mmap_path = "/tmp/xcache"
  50. ; leave it blank(disabled) or "/tmp/phpcore/"
  51. ; make sure it’s writable by php (without checking open_basedir)
  52.  
  53. xcache.coredump_directory = ""
  54. ; per request settings
  55.  
  56. xcache.cacher = On
  57. xcache.stat = On
  58. xcache.optimizer = Off
  59.  
  60. [xcache.coverager]
  61. ; per request settings
  62. ; enable coverage data collecting for xcache.coveragedump_directory and
  63. ; xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
  64.  
  65. xcache.coverager = On
  66. ; ini only settings
  67. ; make sure it’s readable (care open_basedir) by coverage viewer script
  68. ; requires xcache.coverager=On
  69.  
  70. xcache.coveragedump_directory = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement