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; return false;
} }
$cutoff = $redis->get('misp:session_destroy:' . $id); list($cutoff, $allcutoff) = $redis->mGet(['misp:session_destroy:' . $id, 'misp:session_destroy:all']);
$allcutoff = $redis->get('misp:session_destroy:all');
if ( if (
empty($cutoff) || empty($cutoff) ||
( (
!empty($cutoff) &&
!empty($allcutoff) && !empty($allcutoff) &&
$allcutoff < $cutoff $allcutoff < $cutoff
) )