Removed unnecessary clearing of linkscc
authorMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 08:13:52 +0000 (08:13 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 08:13:52 +0000 (08:13 +0000)
includes/Article.php

index 1cb0dd7..46dc201 100644 (file)
@@ -494,21 +494,6 @@ class Article {
                          "WHERE rc_cur_id=" . $this->getID();
                        wfQuery( $sql, DB_WRITE, $fname );
                        
-                       global $wgEnablePersistentLC;
-                       if ( $wgEnablePersistentLC ) {
-
-                               // Purge link cache for this page 
-                               $pageid=$this->getID();
-                               wfQuery("DELETE FROM linkscc WHERE lcc_pageid='{$pageid}'", DB_WRITE);
-
-                               // This next query just makes sure stub colored links to this page 
-                               // are updated correctly (I think). If performance is more important
-                               // than real-time updating of stub links, we really should skip
-                               // this query.
-                               wfQuery("DELETE linkscc FROM linkscc,links ".
-                                       "WHERE lcc_title=links.l_from AND l_to={$pageid}", DB_WRITE);
-                       }
-
                }
                if( $wgDBtransactions ) {
                        $sql = "COMMIT";