Brianna Laugher wrote:
So actually, why is MediaWiki:Sitenotice "aggressively cached"? Or at least why doesn't MediaWiki:Sitenotice/xx work. Given that it's not used in this configuration way.
The sitenotice is wiki-rendered and the rendered result is cached separately. Since it's shown on every page, we want to skip the wiki rendering overhead to minimize the performance impact.
Since it's assumed to be site-specific, and sites are (usually) assumed to be language-specific, only one point is used for the caching, so it wouldn't work properly with multiple languages.
On a site you run yourself, you could hack about a little to disable that caching without probably much performance problems, and putting 'sitenotice' in the content-messages-as-ui-language list would probably do it.
Note that I'm experimenting with a new site notice infrastructure for the upcoming Wikimedia fundraiser which will cache the notice separately (via the HTTP proxy caches), and will handle multiple languages more explicitly. (See extensions/CentralNotice for the last PoC code I posted.)
I'm not sure how suitable it will be for use on other sites, though.
-- brion vibber (brion @ wikimedia.org)