https://bugzilla.wikimedia.org/show_bug.cgi?id=19391





--- Comment #2 from Mormegil <morme...@centrum.cz>  2009-06-27 18:31:49 UTC ---
When I looked at the source, I was surprised to see that, indeed, the cached RC
feed data does not expire. I believe this is just a plain bug: the feed data
should expire after 24 h, just like its timestamp does (adding a patch in a
while).

So, assuming this gets fixed, the feed is cached only for languages somebody
requested, and only for at most 24 h.

If that does not look acceptable to you, we are left with only the other option
I mentioned: force content language always. But, that means saying “no” to
the users requesting otherwise (see that bug #17868), and is not completely
trivial – you will probably need to set wgLang to wgContLang during feed
rendering (or refactor at least FeedUtils::formatDiff (and possibly other
places) to explicitly pass the language to use; (mmm… that $wgUser->getSkin()
seems interesting, too…).

Oh, in fact, we do have yet another option: keep the functionality as it is,
only if wgLang!=wgContLang, do not cache the feed. But that would be a
possibility to a DOS attack or something like that. (Or, we could use much
shorter cache timeouts for those languages.)


-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to