r37696 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37695‎ | r37696 | r37697 >
Date:15:10, 15 July 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* count is too slow here
Modified paths:
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateUtils.php
@@ -23,7 +23,7 @@
2424
2525 // Cache some amount of titles for speed
2626 static $cache = array();
27 - if ( count($cache)>5000 ) $cache = array();
 27+ #if ( count($cache)>5000 ) $cache = array();
2828 if ( !isset($cache[$message]) ) {
2929 $cache[$message] = $wgContLang->ucfirst($message);
3030 }

Status & tagging log