Cache: Add awaits to memory cache rebuilds to fix race conditions (#20960)
* Await rebuilds and fix multiple open DataReaders * Add additional missing awaits
This commit is contained in:
@@ -265,8 +265,8 @@ public sealed class ContentCacheRefresher : PayloadCacheRefresherBase<ContentCac
|
||||
|
||||
if (payload.ChangeTypes.HasType(TreeChangeTypes.RefreshAll))
|
||||
{
|
||||
_documentNavigationManagementService.RebuildAsync();
|
||||
_documentNavigationManagementService.RebuildBinAsync();
|
||||
_documentNavigationManagementService.RebuildAsync().GetAwaiter().GetResult();
|
||||
_documentNavigationManagementService.RebuildBinAsync().GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
if (payload.Key is null)
|
||||
|
||||
Reference in New Issue
Block a user