From: Ori Livneh Date: Mon, 13 Jul 2015 09:19:45 +0000 (-0700) Subject: rebuildLocalisationCache: don't limit memory usage X-Git-Tag: 1.31.0-rc.0~10795 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=ef2822f76f96985836e15c415657d0c36f20cdf7;p=lhc%2Fweb%2Fwiklou.git rebuildLocalisationCache: don't limit memory usage The 1000 MB limit seems to have crept in without good reason, and crashing when crossing an arbitrary threshold like that isn't very useful. LCStoreStaticArray ends up using more than the default limit allows. Change-Id: I1d9ab743720f5a1fbe320180c1dcdb4ad03c5aa1 --- diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index 47866dc047..f89877eabb 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -48,14 +48,6 @@ class RebuildLocalisationCache extends Maintenance { false, true ); } - public function memoryLimit() { - if ( $this->hasOption( 'memory-limit' ) ) { - return parent::memoryLimit(); - } - - return '1000M'; - } - public function finalSetup() { # This script needs to be run to build the inital l10n cache. But if # $wgLanguageCode is not 'en', it won't be able to run because there is