On 30.01.2012, 12:36 Antoine wrote:
One possibility would be for that magic word to be used on every single page, for example to localize the stub / help templates appearing at top of the page.
I guess that would destroy the parser cache entirely.
Well, surprise: EVERY IMAGE PAGE ON COMMONS already has language-specific cache keys because it uses {{autotranslate}} and other stuff that relies on {{int:}}. Furthermore, in page source of [[en:Barack Obama]] (the typical modern example of performance engineer's hell):
<!-- Saved in parser cache with key enwiki:pcache:idhash:534366-0!*!0!!en!4!* and timestamp 20120130094638 generated by srv285 --> Ooops, cache is _already_ fragmented. I wasn't asking for another way of cache fragmentation, I merely proposed that we make retrieval of current language code less hacky and slow. :)