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.
Version: 1.16.x
Severity: normal
liangent | |
Jul 20 2009, 4:31 PM |
F5738: sitenotice-variants.diff | |
Nov 21 2014, 10:38 PM |
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.
Version: 1.16.x
Severity: normal
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.
Created attachment 6581
add variant name to cache key
trying to fix ... i'm new to php :)
Attached:
webmaster wrote:
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
sumanah wrote:
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?