On Mon, 30 Jan 2012 02:35:06 -0800, Max Semenik <maxsem.wiki(a)gmail.com>
wrote:
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. :)
The TOC on that page should be the causes of that cache fragmentation.
Theoretically that should be the very last built-in language cache
fragmenting thing.
That's on the to-do list for being eliminated, just like the cache
fragmentation caused by edit section links was.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://daniel.friesen.name]