MDL-68983 cache: Fix bug with readonly session combined with lock debug

This commit is contained in:
Brendan Heywood 2020-10-12 15:59:31 +11:00
parent 46f977a8bf
commit 57aed80df6

View File

@ -1274,6 +1274,10 @@ class manager {
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);