From: Mr. E23 Date: Fri, 28 Nov 2003 09:42:13 +0000 (+0000) Subject: Removed a bit too much. Must clear linkscc for the article itself on edit. X-Git-Tag: 1.1.0~63 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=c0c33f7983e6f7e622df03f79b92251bba582812;p=lhc%2Fweb%2Fwiklou.git Removed a bit too much. Must clear linkscc for the article itself on edit. --- diff --git a/includes/Article.php b/includes/Article.php index bf9344ec41..95ef788b14 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 );