Changes between Version 1 and Version 2 of PhpIni.zh
- Timestamp:
- 2007-06-19T17:09:08+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PhpIni.zh
v1 v2 12 12 PHP 也会扫描 SAPI 特定的 ini 路径. 首先是 php-{$sapi}.ini 的格式, 然后才是常规的 php.ini. 例如: 13 13 14 ||'''SAPI'''||''' Location'''||'''note'''14 ||'''SAPI'''||'''位置'''||'''注''' 15 15 ||cgi||/etc/php-cgi.ini||(如果 configure 没有启用 fastcgi) 16 16 ||cgi-fcgi||/etc/php-cgi-fcgi.ini||(如果 configure 没有启用 fastcgi) … … 82 82 83 83 '''xcache.cacher''' ''boolean'':: 84 Enable or disable opcode cacher. Not available if xcache.size is 0.84 使用/不使用 opcode 缓冲器. xcache.size = 0 时无效. 85 85 '''xcache.size''' ''int'':: 86 0 to disable, non 0 to enable. Check if your system mmap allows.86 0 禁止, 非 0 则启用缓冲器. 请注意您系统所允许的 mmap 最大值. 87 87 '''xcache.count''' ''int'':: 88 Specify how many chunks to split the cache. seeSplittedCache88 指定将 cache 切分成多少块. 参考 SplittedCache 89 89 '''xcache.slots''' ''size'':: 90 Just a hints for hash slot, you can always store count(items) > slots.90 只是作为 hash 槽个数的参考值, 您可以放心地缓冲超过这个个数的项目. 91 91 '''xcache.ttl''' ''seconds'':: 92 Ttl (Time To Live) value for the php entry (cached opcodes of a file), 0=forever.92 设置缓冲项目的 Ttl (Time To Live) 值, 0=永不过期. 93 93 '''xcache.gc_interval''' ''seconds'':: 94 Garbage collection interval.94 检查过期项目, 回收内存空间的间隔. 95 95 '''xcache.var_size''' ''int'':: 96 96 '''xcache.var_count''' ''int'':: 97 97 '''xcache.var_slots''' ''size'':: 98 Same as above, but for variables. 98 '''xcache.var_gc_interval''' ''seconds'':: 99 同上, 不过用于数据缓冲而不是 opcode 缓冲. 99 100 '''xcache.var_ttl''' ''seconds'':: 100 Default ttl for variables api, xcache_(get|set|inc|dec) etc.101 xcache_(get|set|inc|dec) 等的默认 ttl 值. 101 102 '''xcache.var_maxttl''' ''seconds'':: 102 A longer ttl when using variables api is limited to below max ttl. 103 '''xcache.var_gc_interval''' ''seconds'':: 104 Garbage collection interval for variables api. 103 最大 ttl 值, 程序无法指定超过这个最大值的 ttl. 105 104 '''xcache.readonly_protection''' ''boolean'':: 106 If ReadonlyProtection is turned on, it will be a bit slower, but much safer. This option isn't available for /dev/zero.105 如果启用了 ReadonlyProtection, 将会略微降低性能, 但是会提高一定的安全系数. 这个选项对于 xcache.mmap_path = /dev/zero 无效. 107 106 '''xcache.mmap_path''' ''string'':: 108 for *nix, xcache.mmap_path is a ''file path'', not directory.109 for win32, xcache.mmap_path is anonymous ''map name'', not a file path.110 Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection, 2 group of php won't share the same /tmp/xcache.107 对于 *nix, xcache.mmap_path 是 ''文件路径'', 不是目录. 108 对于 Win32, xcache.mmap_path 只是匿名的 ''map 名'', 不是实际的文件路径. 109 如果您要启用 ReadonlyProtection 请用类似 "/tmp/xcache" 的路径. 2 组 php 不该共用同一个路径 (/dev/zero 除外). 111 110 112 111 == XCache Optimizer == … … 115 114 116 115 '''xcache.optimizer''' ''boolean'':: 117 Enable optimizer.116 启用优化器 (目前无效). 118 117 119 118 == XCache Coverager ==

