mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-68983 cache: Fix bug with readonly session combined with lock debug
This commit is contained in:
parent
496e6ac804
commit
cedf141cc3
1 changed files with 4 additions and 0 deletions
|
@ -1274,6 +1274,10 @@ class manager {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined('READ_ONLY_SESSION') && READ_ONLY_SESSION && !empty($CFG->enable_read_only_sessions)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$SESSION->recentsessionlocks = self::get_recent_session_locks();
|
$SESSION->recentsessionlocks = self::get_recent_session_locks();
|
||||||
array_push($SESSION->recentsessionlocks, $sessionlock);
|
array_push($SESSION->recentsessionlocks, $sessionlock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue