Manual:$wgResourceLoaderMaxQueryLength

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Resource loader: $wgResourceLoaderMaxQueryLength
Maximum query string length for resource loader requests.
Introduced in version: 1.17.0 (r87203)
Removed in version: still in use
Allowed values: integer
Default value: -1
Other settings: Alphabetical | By function

Details[edit]

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.phpManual:LocalSettings.php file.