Last modified: 2014-09-24 00:05:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21846, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19846 - {{int:Conversionname}} cannot be always rendered correctly in Sitenotice
{{int:Conversionname}} cannot be always rendered correctly in Sitenotice
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.16.x
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
: 20734 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-20 16:31 UTC by Liangent
Modified: 2014-09-24 00:05 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
add variant name to cache key (813 bytes, patch)
2009-09-25 14:00 UTC, Liangent
Details

Description Liangent 2009-07-20 16:31:36 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.
Comment 1 Alexandre Emsenhuber [IAlex] 2009-08-17 08:20:28 UTC
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.
Comment 2 Alexandre Emsenhuber [IAlex] 2009-09-19 06:31:56 UTC
*** Bug 20734 has been marked as a duplicate of this bug. ***
Comment 3 Liangent 2009-09-25 14:00:12 UTC
Created attachment 6581 [details]
add variant name to cache key

trying to fix ... i'm new to php :)
Comment 4 Andy Glew 2010-01-13 15:17:41 UTC
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.
Comment 5 db [inactive,noenotif] 2010-12-03 20:01:54 UTC
(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
Comment 6 Sumana Harihareswara 2011-11-06 14:21:41 UTC
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?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links