Changeset 927
- Timestamp:
- 2012-06-26T06:21:04+02:00 (11 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
xcache-zh-gb2312.ini (modified) (6 diffs)
-
xcache.ini (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache-zh-gb2312.ini
r895 r927 1 1 ;; ±¾ÎļþÖ»ÊÇÀý×Ó, ÇëÔÚ php.ini ÀïÉèÖÃÒÔ±ãÉúЧ 2 2 [xcache-common] 3 ;; °²×°³É zend extension (ÍÆ¼ö), ·¾¶Ò»°ãÊÇ "$extension_dir/xcache.so" 3 ;; ¾¯¸æ: zend_extension* = *xcache* ±ØÐëÊÇËùÓÐ zend_extension*=* Ö®ÖеÚÒ»¸ö³öÏÖ 4 ;; °²×°³É zend extension, ·¾¶Ò»°ãÊÇ "$extension_dir/xcache.so" 5 ;; ²»ÍƼöʹÓà extension=xcache.so 6 7 ;; ·Ç windows Àý×Ó 8 ;; install as zend extension, normally "$extension_dir/xcache.so" 4 9 zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so 5 10 ;; Windows ϵͳÀý×Ó: 6 11 zend_extension_ts = c:/php/extensions/php_xcache.dll 7 ;; »òÕßÄúÒ²¿É°Ñ XCache °²×°³É extension, ×¢ÒâÈ·±£ÄúµÄ extension_dir ÉèÖÃÕýÈ·, ²¢°Ñ xcache.so »òÕß php_xcache.dll ·Åµ½¸ÃĿ¼ÀïÃæ 8 ; extension = xcache.so 9 ;; »òÕß Win32 ϵͳ: 10 ; extension = php_xcache.dll 12 ;; ¶ÔÓÚа汾 PHP, _ts ºó׺ÒÑ¾ÒÆ³ý, ÇëʹÓÃÏÂÃæÕâÐÐ 13 zend_extension = c:/php/extensions/php_xcache.dll 11 14 12 15 [xcache.admin] … … 14 17 xcache.admin.user = "mOo" 15 18 ; xcache.admin.pass = md5($ÄúµÄÃÜÂë) 19 ; µÇ¼ʹÓà $your_password 16 20 xcache.admin.pass = "" 17 21 … … 23 27 ; ½ûÓÃ: xcache.size=0 24 28 ; ÆôÓÃ: xcache.size=64M Ö®Àà (ÈÎÒâ>0µÄÖµ) ͬʱÇë×¢ÒâÄúµÄϵͳ mmap ÉÏÏÞ 25 xcache.size = 0M29 xcache.size = 60M 26 30 ; ½¨ÒéÉèÖÃΪ cpu Êý (cat /proc/cpuinfo |grep -c processor) 27 31 xcache.count = 1 … … 34 38 35 39 ; ͬÉÏ, Ö»ÊÇÕë¶Ô±äÁ¿»º´æÉèÖà 36 xcache.var_size = 0M40 xcache.var_size = 4M 37 41 xcache.var_count = 1 38 42 xcache.var_slots = 8K 39 ; ĬÈÏ, ÔÊÐí ini_set()43 ; xcache_*() º¯Êý ttl ²ÎÊýµÄĬÈÏÖµ 40 44 xcache.var_ttl = 0 41 ; ×î´óttlÖµ45 ; ÏÞÖÆ xcache_*() º¯Êý ttl ²ÎÊý²»³¬¹ý´ËÉèÖÃ. 0=²»ÏÞÖÆ 42 46 xcache.var_maxttl = 0 43 47 xcache.var_gc_interval = 300 44 48 45 ; ½ö²âÊÔÓÃ46 xcache.test = Off47 49 ; /dev/zero ʱÎÞЧ 48 50 xcache.readonly_protection = Off 49 ; ¶ÔÓÚ *nix ϵͳ, xcache.mmap_path ÊÇÎļþ·¾¶¶ø²»ÊÇĿ¼ , (¿ÉÒÔ²»´æÔÚ µ«ÊDZØÐëÄÜ´´½¨).50 ; Èç¹ûÄúÆÚÍûÆôÓà ReadonlyProtection, ¿ÉÒÔʹÓÃÀàËÆ "/tmp/xcache"51 ; 2 ¸ö php×é²»»á¹²Ïíͬһ¸ö /tmp/xcache51 ; ¶ÔÓÚ *nix ϵͳ, xcache.mmap_path ÊÇÎļþ·¾¶¶ø²»ÊÇĿ¼. (×Ô¶¯´´½¨/¸²¸Ç) 52 ; Èç¹ûÄúÆÚÍûÆôÓà ReadonlyProtection, ±ØÐë±ÜÃâʹÓà "/dev/*", ¿ÉÒÔʹÓÃÀàËÆ "/tmp/xcache" 53 ; ²»Í¬ php ½ø³Ì×é²»»á¹²Ïíͬһ¸ö /tmp/xcache 52 54 ; ¶ÔÓÚ Win32 ϵͳ, xcache.mmap_path=ÄäÃûMAPÃû×Ö, ²»ÊÇÎļþ·¾¶. ½¨ÒéʹÓà XCache ×ÖÑÛ±ÜÃâ¸úÆäËûÈí¼þ³åÍ» 53 55 xcache.mmap_path = "/dev/zero" … … 59 61 xcache.coredump_directory = "" 60 62 63 ; ÆôÓÃʵÑéÐÔ¹¦ÄÜ (Èç¹ûÓÐ) 64 xcache.experimental = Off 65 66 ; per request settings. ¿ÉÒÔ ini_set, .htaccess µÈ 61 67 xcache.cacher = On 62 68 xcache.stat = On … … 64 70 65 71 [xcache.coverager] 72 ; ±¾¹¦ÄÜ¿ªÆôºó½µµÍÔËÐÐÐÔÄÜ 73 ; ¾¡ÔÚ xcache.coverager == On && xcache.coveragedump_directory == "·Ç¿ÕÖµ" ʱ±¾¹¦ÄܲŻáÆôÓà 66 74 67 ; Èç¹û xcache.coveragedump_directory ÉèÖÃΪ¿ÕÔò±¾ÉèÖÃ×Ô¶¯Îª Off 75 ; per request settings. ¿ÉÒÔ ini_set, .htaccess µÈ 76 ; ÆôÓôúÂëÁ÷³Ì¸²¸ÇÃæÐÅÏ¢²É¼¯ÒÔ¼° xcache_coverager_start/stop/get/clean() µÈº¯Êý 68 77 xcache.coverager = Off 69 78 79 ; ½öÔÚ php ini ÎļþÄÚÉèÖà 70 80 ; ÇëÈ·±£±¾Ä¿Â¼Äܱ» coverage viewer ½Å±¾¶ÁÈ¡ (×¢Òâ open_basedir) 71 ; ÒÀÀµÓÚ xcache.coverager=On72 81 xcache.coveragedump_directory = "" -
trunk/xcache.ini
r895 r927 1 ;; this is an example, it won't work unless properly configured into php.ini 1 2 [xcache-common] 2 ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" 3 ;; WARNING: zend_extension* = *xcache* MUST be the first(above) of all zend_extension*=* 4 ;; using extension=xcache.so is not recommended 5 6 ;; non-windows example 7 ;; update xxx accordingly 3 8 zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/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 9 ;; windows example: 6 10 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 ;; for newer PHP, _ts is removed, use the following line instead 12 zend_extension = c:/php/extensions/php_xcache.dll 11 13 12 14 [xcache.admin] 13 15 xcache.admin.enable_auth = On 14 16 xcache.admin.user = "mOo" 15 ; xcache.admin.pass = md5($your_password) 17 ; set xcache.admin.pass = md5($your_password) 18 ; login use $your_password 16 19 xcache.admin.pass = "" 17 20 … … 37 40 xcache.var_count = 1 38 41 xcache.var_slots = 8K 39 ; default ttl42 ; default value for $ttl parameter of xcache_*() functions 40 43 xcache.var_ttl = 0 44 ; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited 41 45 xcache.var_maxttl = 0 42 46 xcache.var_gc_interval = 300 … … 44 48 ; N/A for /dev/zero 45 49 xcache.readonly_protection = Off 46 ; for *nix, xcache.mmap_path is a file path, not directory. 47 ; Use something like "/tmp/xcache" i f you want to turn on ReadonlyProtection48 ; 2group of php won't share the same /tmp/xcache50 ; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite) 51 ; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection 52 ; different process group of php won't share the same /tmp/xcache 49 53 ; for win32, xcache.mmap_path=anonymous map name, not file path 50 54 xcache.mmap_path = "/dev/zero" … … 55 59 xcache.coredump_directory = "" 56 60 57 ; per request settings 61 ; enable experimental documented features for each release if available 62 xcache.experimental = Off 63 64 ; per request settings. can ini_set, .htaccess etc 58 65 xcache.cacher = On 59 66 xcache.stat = On 60 67 xcache.optimizer = Off 61 68 62 xcache.test = Off 63 xcache.experimental = Off 69 [xcache.coverager] 70 ; enabling this feature will impact performance 71 ; enable only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value" 64 72 65 [xcache.coverager] 66 ; per request settings 67 ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance) 73 ; per request settings. can ini_set, .htaccess etc 74 ; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions 68 75 xcache.coverager = Off 69 76 70 ; ini only settings77 ; set in php ini file only 71 78 ; make sure it's readable (open_basedir is checked) by coverage viewer script 72 ; requires xcache.coverager=On73 79 xcache.coveragedump_directory = ""
Note: See TracChangeset
for help on using the changeset viewer.

