Manual:$wgResourceLoaderMaxage/zh

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResourceLoaderMaxage and the translation is 8% complete.
Other languages:
English • ‎español • ‎français • ‎polski • ‎中文 • ‎日本語
ResourceLoader: $wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
引进版本:1.17.0 (r73568)
移除版本:仍在使用
允许的值:(array)
默认值:参见下方

Details

Maximum time in seconds to cache resources served by ResourceLoader.

Default value

MediaWiki版本:
1.35
$wgResourceLoaderMaxage = [
	'versioned' => 30 * 24 * 60 * 60, // 30 days
	'unversioned' => 5 * 60 // 5 minutes
];
MediaWiki版本:
1.17 – 1.34
$wgResourceLoaderMaxage = array(
	'versioned' => array(
		// Squid/Varnish but also any other public proxy cache between the client and MediaWiki
		'server' => 30 * 24 * 60 * 60, // 30 days
		// On the client side (e.g. in the browser cache).
		'client' => 30 * 24 * 60 * 60, // 30 days
	),
	'unversioned' => array(
		'server' => 5 * 60, // 5 minutes
		'client' => 5 * 60, // 5 minutes
	),
);

See also