手册:$wgUseSquid
此功能已在版本1.35.0中,从MediaWiki核心代码中移除。 请参见$wgUseCdn以获取使用此功能的替代方式。 |
HTTP代理(CDN)设置: $wgUseSquid | |
---|---|
启用/禁用Squid。 |
|
引进版本: | 1.2.0 |
弃用版本: | 1.34.0 (Gerrit change 387877; git #f9f8dff4) |
移除版本: | 1.35.0 (Gerrit change 579755; git #e8d9d68b) |
允许的值: | (布尔值) |
默认值: | false |
其他设置: 按首字母排序 | 按功能排序 |
详情
启用/禁用Squid。 Squid configuration causes the following changes in behaviour:
- The
Cache-Control
header is changed to allow the cache proxy to blindly cache content for a predetermined period of time (configured by $wgSquidMaxage ). - The
Last-Modified
header is artificially shortened to ensure the cache proxy will not renew outdated HTML beyond a certain age. TheLast-Modified
date will never be older than $wgSquidMaxage . This will allow to refresh the cached copy in case there were changes to footer icons, sidebar, skin update, and other configuration or skin-level changes not tracked by the wiki page itself. - Purges are sent to ensure content edited by users remains up to date immediately.
The list of Squid servers to be purged on update must be stored in $wgSquidServers
.
Sending purge requests requires the sockets PHP extension.