Fix for xcache config

  1. cat xcache.ini
  2. # configuration for php Xcache module
  3.  
  4. [xcache-common]
  5. ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
  6. ;zend_extension = /usr/lib/php5/20060613/xcache.so
  7.  
  8. [xcache.admin]
  9. xcache.admin.enable_auth = On
  10. # Configure this to use admin pages
  11. ; xcache.admin.user = "mOo"
  12. ; xcache.admin.pass = md5($your_password)
  13. ; xcache.admin.pass = ""
  14.  
  15. [xcache]
  16. ; ini only settings, all the values here is default unless explained
  17.  
  18. ; select low level shm/allocator scheme implemenation
  19. xcache.shm_scheme =        "mmap"
  20. ; to disable: xcache.size=0
  21. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  22. xcache.size  =                64M
  23. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  24. xcache.count =                 1
  25. ; just a hash hints, you can always store count(items) > slots
  26. xcache.slots =                8K
  27. ; ttl of the cache item, 0=forever
  28. xcache.ttl   =                 0
  29. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  30. xcache.gc_interval =           0
  31.  
  32. ; same as aboves but for variable cache
  33. xcache.var_size  =            0M
  34. xcache.var_count =             1
  35. xcache.var_slots =            8K
  36. ; default ttl
  37. xcache.var_ttl   =             0
  38. xcache.var_maxttl   =          0
  39. xcache.var_gc_interval =     300
  40.  
  41. xcache.test =                Off
  42. ; N/A for /dev/zero
  43. xcache.readonly_protection = Off
  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 =           Off
  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 = ""

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.