Invalidate caches when a cached object is imported.
This commit is contained in:
@@ -99,7 +99,12 @@ namespace Discord
|
|||||||
lock (_writerLock)
|
lock (_writerLock)
|
||||||
{
|
{
|
||||||
foreach (var pair in items)
|
foreach (var pair in items)
|
||||||
_dictionary.TryAdd(pair.Key, pair.Value);
|
{
|
||||||
|
var value = pair.Value;
|
||||||
|
_dictionary.TryAdd(pair.Key, value);
|
||||||
|
value.Cache();
|
||||||
|
RaiseItemCreated(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user