Last modified: 2007-08-14 21:49:29 UTC
Special:DoubleRedirects is empty at Danish Wikipedia (http://da.wikipedia.org/wiki/Speciel:DoubleRedirects) and always claims that the cache is recently updated (every day I think). However, an offline analysis of a database dump shows that there currently are around 100 double redirects. Many of them have been present for months, and are still present. The list is available at http://da.wikipedia.org/wiki/Wikipedia:Dobbelte_omdirigeringer These double redirects should have been in Special:DoubleRedirects, but are not there.
For each of the missing double redirects, at least one redirect was created before the redirect table was added to the database. Those redirects are missing from the table, and the double redirects are not listed on the special page. I think a refresh redirect maintenance script is needed to fix this. Maybe the refreshlinks script should do this.
Created attachment 3701 [details] make refreshlinks update redirects Here is an update of the refreshlinks script that also updates the links in the redirect table. It should work, but I am not sure if it is the best way to fix the problem.
A better solution might be to make LinksUpdate->doUpdate() also update the redirect table. Then refreshlinks would not need any changes, since it calls doUpdate().
The refresh script was fixed in r23928. So my patch is no longer needed. To fix Speciel:DoubleRedirects at da.wikipedia a developer with shell access is needed to run the script on the Wikimedia servers.
Duping this up to bug 10931, since it covers the general problem. *** This bug has been marked as a duplicate of bug 10931 ***