MDL-20462 reminder to minimise timemodified indexed column changes

This commit is contained in:
skodak
2009-10-06 19:34:40 +00:00
parent be1463394f
commit 3a465d1dc9
+2 -1
View 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);