Removed a bit too much. Must clear linkscc for the article itself on edit.
authorMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 09:42:13 +0000 (09:42 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 09:42:13 +0000 (09:42 +0000)
includes/Article.php

index bf9344e..95ef788 100644 (file)
@@ -493,8 +493,15 @@ class Article {
                        $sql = "UPDATE recentchanges SET rc_cur_time='{$now}' " .
                          "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);
+                       }                       
                }
+
                if( $wgDBtransactions ) {
                        $sql = "COMMIT";
                        wfQuery( $sql, DB_WRITE );