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

Roan Kattouw <roan.katt...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roan.katt...@gmail.com

--- Comment #24 from Roan Kattouw <roan.katt...@gmail.com> 2010-07-17 13:55:11 
UTC ---
(In reply to comment #21)
> I don't know why {{int:}} would corrupt the cache. In fact the cache just has
> to remember the language for which it generaetd the page (i.e. the value of 
> the
> "uselang=" query parameter, or by default the language code infered from the
> "Accept-Language:" header in the HTTP query.
> 
> Yes this means that pages may be cached multiple times, but only if they are
> visited by different users using different preferences for their language. All
> users will see a coherent page in their own language, the cache of prerendered
> pages will remain a FIFO and, instead of indexing just on "{{FULLPAGENAME}}",
> it will index on "{{USERLANGUAGE}}:{{FULLPAGENAME}}".
> 
We already do this for various parameters.

> Note that pages in the cache should also have a short lifetime, if they use 
> any
> one of the builtin magics that access to the current time:
> - if {{CURRENTMONTH}} or {{CURRENTYEAR}} is used, the lifetime should not
> exceed the current month or year on the server (but anyway, any page in the
> cache woyuld probably be flushed before, to make room for other cached pages,
> or jsut because the server was upgraded)
> - if {{CURRENTDAY}} is used, the lifetime in cache should not exceed the
> current day on the server ;
> - if {{CURRENTHOUR}} is used, the lifetime in cache should not exceed the
> current hour on the server ;
> - if {{CURRENTMINUTE}} is used, the lifetime in cache should not exceed the
> current minute on the server ;
> - if {{CURRENTSECOND}} is used, the lifetime in cache theoretically should not
> exceed the current second on the server, but a minimum lifetime of pages in 
> the
> cache may still be increased, to avoid too much work on frequently accessed
> pages
When any of these time-dependent magic words is used, the page is only cached
for one hour. This was implemented ages ago.

> This means that builtin functions and magic keywords must be able to decrease
> the default lifetime of pages (but not be able to increase it), according to
> their semantics, and only after they have evaluated their parameters: their
> return value is not just a string, but a structure containing the parsed text
> and the maximum lifetime.
> 
They already are able to do so.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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