Make rebuildLocalisationCache.php also obey --memory-limit if set.
authorReedy <reedy@wikimedia.org>
Thu, 2 Aug 2012 22:35:20 +0000 (23:35 +0100)
committerReedy <reedy@wikimedia.org>
Thu, 2 Aug 2012 22:35:20 +0000 (23:35 +0100)
Same as https://gerrit.wikimedia.org/r/17473 for runJobs.php

Change-Id: I352df6c2f46606fe575ef5f52a39175b4aad9f75

maintenance/rebuildLocalisationCache.php

index 5915a6b..ffe66c6 100644 (file)
@@ -41,6 +41,9 @@ class RebuildLocalisationCache extends Maintenance {
        }
 
        public function memoryLimit() {
+               if ( $this->hasOption( 'memory-limit' ) ) {
+                       return parent::memoryLimit();
+               }
                return '1000M';
        }