手册:$wgResourceLoaderMaxQueryLength

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResourceLoaderMaxQueryLength and the translation is 33% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
ResourceLoader: $wgResourceLoaderMaxQueryLength
Maximum query string length for resource loader requests.
引进版本:1.17.0 (r87203)
移除版本:仍在使用
允许的值:(整数)
默认值:-1
其他设置: 按首字母排序 | 按功能排序

细节

Maximum query string length for resource loader requests.

If set to a positive number, 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 if your web server has a low - less than let's say 1024 - query string length limit or a low value for suhosin.get.max_value_length that you can't increase.

If set to a negative number, ResourceLoader will assume there is no query string length limit.

When installing MediaWiki, the installer will automatically detect an appropriate value for this setting, and set it in the automatically generated LocalSettings.php file.