2009/9/1 Ilmari Karonen <nos...@vyznev.net>:
> Domas Mituzas wrote:
>>
>> Performance-wise it is even better, if all main messages which have
>> {{SITENAME}} get replacements with literals. Otherwise you're adding
>> up 5ms of page load time to each page. :)
>
> I'm not very familiar at all with the new LocalisationCache system, but
> it seems to me that it might be possible (and useful, from a performance
> viewpoint) to pre-substitute some essentially constant expressions
> (which only depend on things like configuration variables in
> LocalSettings) in advance when the cache is populated.
>
> I can think of at least the following magic words that probably could be
> so substituted:
>
> * {{SITENAME}}
> * {{CONTENTLANGUAGE}}, {{DIRMARK}}
> * {{SERVER}}, {{SERVERNAME}}, {{SCRIPTPATH}}
>
Magic words have cache expiry times defined in MagicWord.php (for
stuff like {{CURRENTDAY}}) ; we could simply honor them and let
messages containing other magic words such as these never expire.

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to