don't cache unfound accounts
This commit is contained in:
parent
d0a3b3beab
commit
66bbf3129f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue