chg: [internal] Faster check for session destruction

pull/9534/head
Jakub Onderka 2024-01-30 16:54:46 +01:00
parent f1bab1e98c
commit 7f935f4cec
1 changed files with 1 additions and 3 deletions

View File

@ -2078,12 +2078,10 @@ class User extends AppModel
return false;
}
$cutoff = $redis->get('misp:session_destroy:' . $id);
$allcutoff = $redis->get('misp:session_destroy:all');
list($cutoff, $allcutoff) = $redis->mGet(['misp:session_destroy:' . $id, 'misp:session_destroy:all']);
if (
empty($cutoff) ||
(
!empty($cutoff) &&
!empty($allcutoff) &&
$allcutoff < $cutoff
)