mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 22:45:54 +02:00
MDL-73245 cache: Fix bug with session lock debugging
When session lock debugging and read only sessions deubgging are both enabled, session lock debugging becomes moot. This patch causes the session lock deubgging code to exit early if read only sessions debugging is enabled.
This commit is contained in:
parent
51149a78cc
commit
f71fced168
@ -1315,7 +1315,9 @@ class manager {
|
||||
return;
|
||||
}
|
||||
|
||||
if (defined('READ_ONLY_SESSION') && READ_ONLY_SESSION && !empty($CFG->enable_read_only_sessions)) {
|
||||
$readonlysession = defined('READ_ONLY_SESSION') && READ_ONLY_SESSION;
|
||||
$readonlydebugging = !empty($CFG->enable_read_only_sessions) || !empty($CFG->enable_read_only_sessions_debug);
|
||||
if ($readonlysession && $readonlydebugging) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user