rebuildLocalisationCache: don't limit memory usage
authorOri Livneh <ori@wikimedia.org>
Mon, 13 Jul 2015 09:19:45 +0000 (02:19 -0700)
committerOri Livneh <ori@wikimedia.org>
Mon, 13 Jul 2015 09:26:34 +0000 (02:26 -0700)
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

maintenance/rebuildLocalisationCache.php

index 47866dc..f89877e 100644 (file)
@@ -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