Last modified: 2011-09-23 00:19:34 UTC
Hello, I encountered strange behavior of /index.php?action=ajax on commons for the category tree. Expanding "Ticket machines in China (1 K)" returns the results in Japanese. And this is not my language setting. For example on http://commons.wikimedia.org/wiki/Category:Ticket_machines_by_country Here is the query my browser sends with AJAX: http://commons.wikimedia.org/w/index.php?action=ajax&rs=efCategoryTreeAjaxWrapper&rsargs[]=Ticket_machines_in_China&rsargs[]=%7B%22mode%22%3A%200%2C%20%22hideprefix%22%3A%2020%2C%20%22showcount%22%3A%20true%2C%20%22namespaces%22%3A%20false%7D&rsargs[]=json And it returns ... <span title="1サブカテゴリ、0ページ、2ファイルを含んでいます">(1カテゴリ、2ファイル)</span> ... RoanKattouw gets Japanese too.
I also get this... Probably a caching issue? Not an HTTP cache issue -- different URLs return the same -- but I suspect memcache. CategoryTreeFunctions::ajax() builds a memcache key for the rendered data like this: $mckey = wfMemcKey( "categorytree(" . $this->getOptionsAsCacheKey( $depth ) . ")", $dbkey, $wgContLang->getExtraHashOptions(), $wgRenderHashAppend ); You will notice that this doesn't include the output language!
r96693 on trunk Merged to: r96694 on 1.18 r96695 on 1.17 r96696 on 1.17wmf1, will need deployment.
*** Bug 19151 has been marked as a duplicate of this bug. ***