Page MenuHomePhabricator

Cache of old revisions not updated
Open, LowPublic

Description

When an action causes a red link to become a blue one (e.g. page creation, page undeletion, and page move) or vice versa (page deletion and page move-without-redirect), the link color cache in old revisions of other pages is not updated, as one could see at https://en.wikipedia.org/w/index.php?title=Wikipedia:Requested_moves/Technical_requests&oldid=1034765837.

Also, old revisions of moved pages are sometimes shown as if the page was still at its old title, as one could see at https://en.wikipedia.org/w/index.php?title=R%C3%B3th_Rebeka&oldid=1034768759. Moving a page should immediately refresh the cache of all its old revisions as well.

In general, it seems that the cache of old revisions is not updated as frequently as expected.

Event Timeline

Hi @GeoffreyT2000, thanks for taking the time to report this. Please always use the bug report form for creating bug reports instead (it is linked from the preamble), and structure your bug reports.

Krinkle subscribed.

Up until recently, oldid views were not cached on the server (only in one's browser afaik, if that).

A few months ago (as part of T244058), a secondary ParserCache was introduced for old revisions. This is configured via wgOldRevisionParserCacheExpireTime which is set to 1 hour (compared to 30 days for current revisions of articles). The current-revision 30-day cache is purged after an edit, after a red link is created, after a used template changes etc. The old-revision cache does not get purged and this is by choice since it lasts only one hour which seems short enough. If anything, people might expect it to last longer and thus cause to change. (There are numerous requests for making old revisions stay exactly as they were in rendered form, since now when they expire they can start to fall apart of templates change etc.).

If an old revision cache lasts for more than 1 hour, then that would be a bug.