Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; this is an example, it won't work unless properly configured into php.ini
  2. [xcache-common]
  3. extension = xcache.so
  4.  
  5. [xcache.admin]
  6. xcache.admin.enable_auth = On
  7. xcache.admin.user = "admin"
  8. ; set xcache.admin.pass = md5($your_password)
  9. ; login use $your_password
  10. xcache.admin.pass = ""
  11.  
  12. [xcache]
  13. ; ini only settings, all the values here is default unless explained
  14.  
  15. ; select low level shm implemenation
  16. xcache.shm_scheme =        "mmap"
  17. ; to disable: xcache.size=0
  18. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  19. xcache.size  =               60M
  20. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  21. xcache.count =                 1
  22. ; just a hash hints, you can always store count(items) > slots
  23. xcache.slots =                8K
  24. ; ttl of the cache item, 0=forever
  25. xcache.ttl   =                 0
  26. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  27. xcache.gc_interval =           0
  28.  
  29. ; same as aboves but for variable cache
  30. xcache.var_size  =            4M
  31. xcache.var_count =             1
  32. xcache.var_slots =            8K
  33. ; default value for $ttl parameter of xcache_*() functions
  34. xcache.var_ttl   =             0
  35. ; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
  36. xcache.var_maxttl   =          0
  37. xcache.var_gc_interval =     300
  38.  
  39. ; mode:0, const string specified by xcache.var_namespace
  40. ; mode:1, $_SERVER[xcache.var_namespace]
  41. ; mode:2, uid or gid (specified by xcache.var_namespace)
  42. xcache.var_namespace_mode =    0
  43. xcache.var_namespace =        ""
  44.  
  45. ; N/A for /dev/zero
  46. xcache.readonly_protection = Off
  47. ; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
  48. ; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
  49. ; different process 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. ; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)
  55. xcache.coredump_directory =   ""
  56. ; Windows only. leave it as 0 (default) until you're told by XCache dev
  57. xcache.coredump_type =         0
  58.  
  59. ; disable cache after crash
  60. xcache.disable_on_crash =    Off
  61.  
  62. ; enable experimental documented features for each release if available
  63. xcache.experimental =        Off
  64.  
  65. ; per request settings. can ini_set, .htaccess etc
  66. xcache.cacher =               On
  67. xcache.stat   =               On
  68. xcache.optimizer =           Off
  69.  
  70. [xcache.coverager]
  71. ; enabling this feature will impact performance
  72. ; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
  73.  
  74. ; per request settings. can ini_set, .htaccess etc
  75. ; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
  76. xcache.coverager =           Off
  77. xcache.coverager_autostart =  On
  78.  
  79. ; set in php ini file only
  80. ; make sure it's readable (open_basedir is checked) by coverage viewer script
  81. xcache.coveragedump_directory = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement