Last modified: 2008-08-23 23:30:41 UTC
Currently, if page has some page link, template and category are present in stable version of the page, and are not present in latest version, they are still present in categorylinks, pagelinks and templatelinks tables regardless of $wgFlaggedRevsOverride value. At least page and template links should always use latest version, since its mostly used for technical and internal purposes, not for publicity.
Link tracking is used for both internal and user needs. By only tracking the current, it breaks cache invalidation of stable versions.
We definitely need to do something with it, because current behaviour breaks some of ru-wiki internal processes (e.g. "Connectivity project" which is used to fight with isolated articles). There are categories and templates which are set and unset automatically by bots, but now it often fails due to some non-sighted anon edits. It seems to me that in ideal case we would like to have all 'links'-related features (e.g. "WhatLinksHere", Categories and so on) to accept some arguemnts which sets what version of the article is under consideration. For example, we need to be able to retrieve "A list of articles which stable revision belong to this category" or "A list of articles which stable revisions links to this article" and so on. But it seems not to be very easy problem for me. However, now we need some temporary solution to return to previous behaviour just right now. (E.g. if we have some article which is included in the category A in sighted revision and does not included into this category in most recent (not-yet-sighted) revision, it shouldn't appear in this category.)
Done in r39855, r39876