Manual:$wgMemoryLimit

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

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Miscellaneous settings: $wgMemoryLimit
The minimum amount of memory that MediaWiki "needs";
MediaWiki will try to raise PHP's memory limit if it's below this amount.
Introduzida na versão:1.16.0 (r54339)
Removida na versão:ainda em uso
Valores permitidos:Shorthand byte notation
Valor por omissão:"50M"
Outras configurações: Lista Alfabética | Lista por Função

Detalhes

The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount.

Notas

A check in Setup.php gets run on every page view to make sure that PHP's memory limit is at least this amount. If it's lower, MediaWiki will use ini_set() to raise it if it can.

The installation script used to insert ini_set( 'memory_limit', '20M' ); in LocalSettings.php if the memory limit was below 20M. This led to problems when people raised the memory limit for their server later and found that it was mysteriously overridden.