From: Aaron Schulz Date: Mon, 20 Jul 2015 22:15:53 +0000 (-0700) Subject: Avoid logging query in wasDeletedSinceLastEdit() if the page still exists X-Git-Tag: 1.31.0-rc.0~10696^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=377df958bf287ad8e3f2a05ae25ad16a0060081d;p=lhc%2Fweb%2Fwiklou.git Avoid logging query in wasDeletedSinceLastEdit() if the page still exists * This avoids hitting a long tail of logging table queries that cannot easily use the buffer pool all the time. Change-Id: Id2ad6b9699f1a8c579ebb1c3c0319183772af1bd --- diff --git a/includes/EditPage.php b/includes/EditPage.php index bf322aeb1b..0233b11d74 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3445,7 +3445,7 @@ HTML $this->deletedSinceEdit = false; - if ( $this->mTitle->isDeletedQuick() ) { + if ( !$this->mTitle->exists() && $this->mTitle->isDeletedQuick() ) { $this->lastDelete = $this->getLastDelete(); if ( $this->lastDelete ) { $deleteTime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp );