Treat interwiki titles as known-bad in LinkCache, prevents useless queries for interw...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 15:54:27 +0000 (15:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 15:54:27 +0000 (15:54 +0000)
includes/LinkCache.php

index dce3459..767b323 100644 (file)
@@ -136,7 +136,7 @@ class LinkCache {
                wfProfileIn( __METHOD__ );
 
                $key = $nt->getPrefixedDBkey();
-               if ( $this->isBadLink( $key ) ) {
+               if ( $this->isBadLink( $key ) || $nt->isExternal() ) {
                        wfProfileOut( __METHOD__ );
                        return 0;
                }