]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20462 reminder to minimise timemodified indexed column changes
authorskodak <skodak>
Tue, 6 Oct 2009 19:34:40 +0000 (19:34 +0000)
committerskodak <skodak>
Tue, 6 Oct 2009 19:34:40 +0000 (19:34 +0000)
lib/sessionlib.php

index aac9aa015820020c30febe0f7e17b2c5396ab095..fb59e0a380463d58dc39964a458eac0a2427c0be 100644 (file)
@@ -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);