"Aaron Schulz" posted a comment on MediaWiki.r111614.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/111614#c31046

Commit summary for MediaWiki.r111614:

live hack to deal with 500s on log/RC views

Aaron Schulz's comment:

getTranslatedLanguageNames() has a hook to improve the language names beyond 
just using Names.php. CLDR and Translate have handlers. The later hook (the 
function translateMessageDocumentationLanguage()), tries to load the language 
name message using the respective language translations. This causes a bunch of 
calls to LocalisationCache::recache() as it tries to load in files for 
different languages. In profiling I'd see stuff like:
* 95.86% 13.298977 8 - LocalisationCache::recache
Normally there is the content and user language, which are often the same, and 
that's it. MW struggles trying to load N languages where N is proportional to 
the number of log items on a page view. The hack I made stopped this from 
happening.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to