手册:$wgHTCPMulticastAddress
Appearance
此功能已在版本1.24.0从MediaWiki核心代码中移除。
请参见$wgHTCPRouting以获取使用此功能的替代方式。 |
| HTCP组播刷新: $wgHTCPMulticastAddress | |
|---|---|
| What address to send udp HTCP purge packets if being used |
|
| 引进版本: | 1.4.1 |
| 移除版本: | 1.24.0 (Gerrit change 150761; git #0eed71b7) |
| 允许的值: | (IP位址) |
| 默认值: | false (1.9-1.23)"224.0.0.85" (1.4.1-1.8) |
| 其他设置: 按首字母排序 | 按功能排序 | |
细节
已弃用
Setting first appeared in 1.4.1, but was commented out in DefaultSettings.php.
自1.9.0版本后设置为否。
Replaced by $wgHTCPMulticastRouting in MediaWiki 1.20 and $wgHTCPRouting in MediaWiki 1.22 and subsequent versions.
HTCP is a method of purging entries from the Squid cache that can use multicast and udp which is faster then opening an http connection to every squid server.
The $wgHTCPMulticastAddress variable is deprecated as of MediaWiki 1.20.0 but is still recognized by being copied to the new one in includes/Setup.php:
// $wgHTCPMulticastRouting got renamed to $wgHTCPRouting in MediaWiki 1.22
// 确保向下兼容。
if ( !$wgHTCPRouting && $wgHTCPMulticastRouting ) {
$wgHTCPRouting = $wgHTCPMulticastRouting;
}
// Initialize $wgHTCPRouting from backwards-compatible settings that comes from pre 1.20 version.
if ( !$wgHTCPRouting && $wgHTCPMulticastAddress ) {
$wgHTCPRouting = array(
'' => array(
'host' => $wgHTCPMulticastAddress,
'port' => $wgHTCPPort,
)
);
}