r2093 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2092‎ | r2093 | r2094 >
Date:09:42, 28 November 2003
Author:e23
Status:old
Tags:
Comment:
Removed a bit too much. Must clear linkscc for the article itself on edit.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -493,8 +493,15 @@
494494 $sql = "UPDATE recentchanges SET rc_cur_time='{$now}' " .
495495 "WHERE rc_cur_id=" . $this->getID();
496496 wfQuery( $sql, DB_WRITE, $fname );
497 -
 497+
 498+ global $wgEnablePersistentLC;
 499+ if ( $wgEnablePersistentLC ) {
 500+ // Purge link cache for this page
 501+ $pageid=$this->getID();
 502+ wfQuery("DELETE FROM linkscc WHERE lcc_pageid='{$pageid}'", DB_WRITE);
 503+ }
498504 }
 505+
499506 if( $wgDBtransactions ) {
500507 $sql = "COMMIT";
501508 wfQuery( $sql, DB_WRITE );

Status & tagging log