https://bugzilla.wikimedia.org/show_bug.cgi?id=19391
Summary: The feed on Special:RecentChanges is cached in random
language
Product: MediaWiki
Version: unspecified
Platform: All
URL: http://ab.wiktionary.org/w/index.php?title=Special:Recen
tChanges&feed=rss&uselang=ru
OS/Version: All
Status: NEW
Keywords: need-review, patch
Severity: minor
Priority: Normal
Component: Recent changes
AssignedTo: [email protected]
ReportedBy: [email protected]
Blocks: 3646
Created an attachment (id=6265)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6265)
Include language in the cache key
The feed for recent changes is cached (for at least $wgFeedCacheTimeout
seconds). The cache key considers limit, hideminor (and target), and the code
prevents tries to prevent other options from having effect (stating “Feed is
cached on limit,hideminor; other params would randomly not work”).
However, the user language, and the uselang query parameter still have effect.
That means that the feed gets cached in the preferred language of the user who
triggered its rendering, and that language is served to all users during the
cache timeout period. (Check e.g.
http://ab.wiktionary.org/w/index.php?title=Special:RecentChanges&feed=rss&uselang=ru
and immediately afterwards just
http://ab.wiktionary.org/w/index.php?title=Special:RecentChanges&feed=rss)
There are, in principle, two ways of solving this bug: 1. Fix the feed so that
is always generated in the content language, no matter what the user wants. 2.
Change the caching key to include the language.
The first option would not only be user-unfriendly (see also bug #17868), it
would also be quite difficult to achieve. Not only does the preferred language
affect the feed format, it also affects contents of displayed log events, etc.
Since the second option is also easy to implement, so I am providing a simple
patch.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l