r94 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93‎ | r94 | r95 >
Date:07:52, 8 February 2002
Author:vibber
Status:old
Tags:
Comment:
Don't change timestamp when clearing caches of linked articles
Modified paths:
  • /trunk/phpwiki/fpw/wikiPage.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/fpw/wikiPage.php
@@ -202,7 +202,7 @@
203203 $sql = "INSERT INTO cur (cur_title) VALUES (\"$this->secureTitle\")" ;
204204 mysql_query ( $sql , $connection ) ;
205205 if ( $useCachedPages ) { # Flushing cache for all pages that linked to the empty topic
206 - $sql = "UPDATE cur SET cur_cache=\"\" WHERE cur_linked_links LIKE \"%$this->secureTitle%\" OR cur_unlinked_links LIKE \"%$this->secureTitle%\"" ;
 206+ $sql = "UPDATE cur SET cur_cache=\"\", cur_timestamp=cur_timestamp WHERE cur_linked_links LIKE \"%$this->secureTitle%\" OR cur_unlinked_links LIKE \"%$this->secureTitle%\"" ;
207207 mysql_query ( $sql , $connection ) ;
208208 }
209209 #mysql_close ( $connection ) ;

Status & tagging log