From: skodak Date: Tue, 6 Oct 2009 19:34:40 +0000 (+0000) Subject: MDL-20462 reminder to minimise timemodified indexed column changes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3a465d1dc9bb22bc548a7707bff2acae6345fed7;p=moodle.git MDL-20462 reminder to minimise timemodified indexed column changes --- diff --git a/lib/sessionlib.php b/lib/sessionlib.php index aac9aa0158..fb59e0a380 100644 --- a/lib/sessionlib.php +++ b/lib/sessionlib.php @@ -505,7 +505,8 @@ class database_session extends session_stub { $this->record->timemodified = time(); $this->record->lastip = getremoteaddr(); - // TODO: verify session changed before doing update + // TODO: verify session changed before doing update, + // also make sure the timemodified field is changed only overy 10s if nothing else changes MDL-20462 try { $this->database->update_record_raw('sessions', $this->record);