手册:$wgResourceLoaderMaxQueryLength

This page is a translated version of the page Manual:$wgResourceLoaderMaxQueryLength and the translation is 30% complete.
Other languages:
English • ‎español • ‎français • ‎polski • ‎中文 • ‎日本語
ResourceLoader: $wgResourceLoaderMaxQueryLength
Maximum query string length for ResourceLoader requests.
引进版本:1.17.0 (r87203)
移除版本:仍在使用
允许的值:(整数)
默认值:(see below)

细节

ResourceLoader will not generate URLs whose query string is more than this many characters long and will instead use multiple requests with shorter query strings. This degrades performance, but may be needed based on the maximum length supported by your web server and/or your user's web browsers.

Prior to MediaWiki 1.34, this could be set to a negative number, for which ResourceLoader would assume there is no query string length limit.

When installing MediaWiki, the installer will automatically warn if you have Suhosin installed with a limit lower than 2000.

Default value

MediaWiki版本:
1.22
$wgResourceLoaderMaxQueryLength = false;
MediaWiki版本:
1.17 – 1.21
$wgResourceLoaderMaxQueryLength = -1;