Skip to content

Commit

Permalink
MDL-68983 cache: Fix bug with readonly session combined with lock debug
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Oct 13, 2020
1 parent 46f977a commit 57aed80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/classes/session/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,10 @@ public static function update_recent_session_locks($sessionlock) {
return;
}

if (defined('READ_ONLY_SESSION') && READ_ONLY_SESSION && !empty($CFG->enable_read_only_sessions)) {
return;
}

$SESSION->recentsessionlocks = self::get_recent_session_locks();
array_push($SESSION->recentsessionlocks, $sessionlock);

Expand Down

0 comments on commit 57aed80

Please sign in to comment.