Advertisement
Guest User

Untitled

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