aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ViewCountUpdate.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ViewCountUpdate.php')
-rw-r--r--includes/ViewCountUpdate.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/ViewCountUpdate.php b/includes/ViewCountUpdate.php
index 84a03991f8ce..16976f11b0f2 100644
--- a/includes/ViewCountUpdate.php
+++ b/includes/ViewCountUpdate.php
@@ -1,6 +1,6 @@
<?php
+# $Id$
# See deferred.doc
-
class ViewCountUpdate {
var $mPageID;
@@ -12,13 +12,12 @@ class ViewCountUpdate {
function doUpdate()
{
- global $wgDisableCounters;
+ global $wgDisableCounters, $wgIsMySQL;
if ( $wgDisableCounters ) { return; }
-
- $sql = "UPDATE LOW_PRIORITY cur SET cur_counter=(1+cur_counter)," .
+ $lowpri=$wgIsMySQL?"LOW_PRIORITY":"";
+ $sql = "UPDATE $lowpri cur SET cur_counter=(1+cur_counter)," .
"cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
$res = wfQuery( $sql, DB_WRITE, "ViewCountUpdate::doUpdate" );
}
}
-
?>