-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use lazy user in UserMountCache #33579
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see last comment
Signed-off-by: Robin Appelman <[email protected]>
98d06cd
to
5fc5cf1
Compare
$userid = $row['user_id']; | ||
|
||
// check that the user exits | ||
if ($this->userManager->getDisplayName($userid) === null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fond of this check, seems hack-ish, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit yes, but it's the easiest way I can think of to do this check without requesting data from the user backend if not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#33582 add caching to userExists
, will adjust this PR once that is merged
Signed-off-by: Robin Appelman [email protected]