4 class ViewCountUpdate
{
8 function ViewCountUpdate( $pageid )
10 $this->mPageID
= $pageid;
15 global $wgDisableCounters, $wgIsMySQL;
16 if ( $wgDisableCounters ) { return; }
17 $lowpri=$wgIsMySQL?
"LOW_PRIORITY":"";
18 $sql = "UPDATE $lowpri cur SET cur_counter=(1+cur_counter)," .
19 "cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
20 $res = wfQuery( $sql, DB_WRITE
, "ViewCountUpdate::doUpdate" );