Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -213,6 +213,8 @@ |
214 | 214 | $out .= $this->makeGroupGroup( $item, $cache ); |
215 | 215 | } |
216 | 216 | |
| 217 | + $cache->commit(); |
| 218 | + |
217 | 219 | if ( $out ) { |
218 | 220 | $out = $this->createHeader( $code ) ."\n" . $out; |
219 | 221 | $out .= Xml::closeElement( 'table' ); |
— | — | @@ -325,7 +327,8 @@ |
326 | 328 | |
327 | 329 | // Initialise messages. |
328 | 330 | $collection = $group->initCollection( $code ); |
329 | | - $collection->setInFile( $group->load( $code ) ); |
| 331 | + // Takes too much memory and only hides inconsistent import state |
| 332 | + #$collection->setInFile( $group->load( $code ) ); |
330 | 333 | $collection->filter( 'ignored' ); |
331 | 334 | $collection->filter( 'optional' ); |
332 | 335 | // Store the count of real messages for later calculation. |
— | — | @@ -344,10 +347,11 @@ |
345 | 348 | $cache->set( $group->getId(), $code, $result ); |
346 | 349 | |
347 | 350 | static $i = 0; |
348 | | - if ( $i++ % 50 === 0 ) { |
| 351 | + if ( $i++ % 10 === 0 ) { |
349 | 352 | $cache->commit(); |
350 | 353 | } |
351 | 354 | |
| 355 | + unset( $collection ); |
352 | 356 | wfProfileOut( __METHOD__ ); |
353 | 357 | |
354 | 358 | return $result; |