diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 83b56f626a..4f1e723c46 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -777,6 +777,8 @@ App::shutdown() return; } + // Purge cache to ensure we get fresh session count + $dbForProject->purgeCachedDocument('users', $userId); $user = $dbForProject->getDocument('users', $userId); if ($user->isEmpty()) { return;