mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
don't cache unfound accounts
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BirdsiteLive.Twitter
|
|||||||
if (!_userCache.TryGetValue(username, out TwitterUser user))
|
if (!_userCache.TryGetValue(username, out TwitterUser user))
|
||||||
{
|
{
|
||||||
user = _twitterService.GetUser(username);
|
user = _twitterService.GetUser(username);
|
||||||
_userCache.Set(username, user, _cacheEntryOptions);
|
if(user != null) _userCache.Set(username, user, _cacheEntryOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
|
Reference in New Issue
Block a user