Manual:$wgCdnMaxAge/zh

From mediawiki.org
This page is a translated version of the page Manual:$wgCdnMaxAge and the translation is 88% complete.
HTTP代理(CDN)设置: $wgCdnMaxAge
CDN的缓存TTL作为s-maxage(没有ESI)或者Surrogate-Control(带有ESI)发送。
引进版本:1.34.0 (Gerrit change 387877; git #f9f8dff4)
移除版本:仍在使用
允许的值:(整数)
默认值:18000

详情

页面视图缓存的缓存超时,将作为s-maxage(没有ESI)或者Surrogate-Control(带有ESI)发送。 如果没有使用ESI,您应该在CDN配置中删除s-maxage。

18000秒 = 5小时,使用2678400秒可以获得更多的缓存命中,相当于31天。

这个变量在MediaWiki 1.34中从$wgSquidMaxage 改名而来。