Last modified: 2014-09-24 00:05:29 UTC
see bug 19840. because -{ }- is not supported in Sitenotice, we use code like {{#switch:{{int:Conversionname}}|zh-hans=s|zh-hant=t}} to do conversion. the bug described in summary caused that bug.
Yes, that's because the site notice is cached and thus is only parsed when the cache expires. This means that "{{#switch:...}}" is only expanded on a cache miss and all other requests will use the same result.
*** Bug 20734 has been marked as a duplicate of this bug. ***
Created attachment 6581 [details] add variant name to cache key trying to fix ... i'm new to php :)
Piling on: I want to use variables such as PAGENAMEE inside the Sitenotice, so that there may be different links inside the sitenotice for different pages. However, the caching of sitenotice gets in the way.
(In reply to comment #4) > Piling on: I want to use variables such as PAGENAMEE inside the Sitenotice, so > that there may be different links inside the sitenotice for different pages. > However, the caching of sitenotice gets in the way. bug 8420
Liangent, thank you for your contribution. I'm sorry no one responded to your patch in a timely fashion. I see that it now doesn't apply cleanly to trunk. Are you interested in updating it?