From 3a465d1dc9bb22bc548a7707bff2acae6345fed7 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 6 Oct 2009 19:34:40 +0000 Subject: [PATCH] MDL-20462 reminder to minimise timemodified indexed column changes --- lib/sessionlib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5