r919 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r918‎ | r919 | r920 >
Date:07:52, 19 November 2002
Author:vibber
Status:old
Tags:
Comment:
Make updates LOW_PRIORITY
Modified paths:
  • /trunk/phpwiki/newcodebase/SearchUpdate.php (modified) (history)
  • /trunk/phpwiki/newcodebase/SiteStatsUpdate.php (modified) (history)
  • /trunk/phpwiki/newcodebase/UserTalkUpdate.php (modified) (history)
  • /trunk/phpwiki/newcodebase/ViewCountUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/newcodebase/ViewCountUpdate.php
@@ -12,7 +12,7 @@
1313
1414 function doUpdate()
1515 {
16 - $sql = "UPDATE cur SET cur_counter=(1+cur_counter)," .
 16+ $sql = "UPDATE LOW_PRIORITY cur SET cur_counter=(1+cur_counter)," .
1717 "cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
1818 $res = wfQuery( $sql, "ViewCountUpdate::doUpdate" );
1919 }
Index: trunk/phpwiki/newcodebase/SiteStatsUpdate.php
@@ -31,7 +31,7 @@
3232 else $m = "";
3333 array_push( $a, "ss_good_articles=(ss_good_articles$m)" );
3434
35 - $sql = "UPDATE site_stats SET " . implode ( ",", $a ) .
 35+ $sql = "UPDATE LOW_PRIORITY site_stats SET " . implode ( ",", $a ) .
3636 " WHERE ss_row_id=1";
3737 wfQuery( $sql, "SiteStatsUpdate::doUpdate" );
3838 }
Index: trunk/phpwiki/newcodebase/UserTalkUpdate.php
@@ -36,7 +36,7 @@
3737 $id = User::idFromName( $this->mTitle );
3838 if ( 0 == $id ) { return; }
3939
40 - $sql = "UPDATE user SET user_newtalk=1 WHERE user_id={$id}";
 40+ $sql = "UPDATE LOW_PRIORITY user SET user_newtalk=1 WHERE user_id={$id}";
4141 wfQuery( $sql, $fname );
4242 }
4343 }
Index: trunk/phpwiki/newcodebase/SearchUpdate.php
@@ -55,7 +55,7 @@
5656 # Strip wiki '' and '''
5757 $text = preg_replace( "/''[']*/", " ", $text );
5858
59 - $sql = "UPDATE cur SET cur_timestamp=cur_timestamp,cur_ind_text='" .
 59+ $sql = "UPDATE LOW_PRIORITY cur SET cur_timestamp=cur_timestamp,cur_ind_text='" .
6060 wfStrencode( $text ) . "' WHERE cur_id={$this->mId}";
6161 wfQuery( $sql, "SearchUpdate::doUpdate" );
6262 }

Status & tagging log