https://github.com/umbraco/Umbraco-CMS/issues/10394 - Fixes issue with "Rebuild" not really doing anything, because the "null" injected was not handled like "All", but instead ignored the type.
This commit is contained in:
@@ -101,20 +101,9 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence
|
||||
IReadOnlyCollection<int> mediaTypeIds = null,
|
||||
IReadOnlyCollection<int> memberTypeIds = null)
|
||||
{
|
||||
if (contentTypeIds != null)
|
||||
{
|
||||
RebuildContentDbCache(groupSize, contentTypeIds);
|
||||
}
|
||||
|
||||
if (mediaTypeIds != null)
|
||||
{
|
||||
RebuildContentDbCache(groupSize, mediaTypeIds);
|
||||
}
|
||||
|
||||
if (memberTypeIds != null)
|
||||
{
|
||||
RebuildContentDbCache(groupSize, memberTypeIds);
|
||||
}
|
||||
RebuildContentDbCache(groupSize, contentTypeIds);
|
||||
RebuildContentDbCache(groupSize, mediaTypeIds);
|
||||
RebuildContentDbCache(groupSize, memberTypeIds);
|
||||
}
|
||||
|
||||
// assumes content tree lock
|
||||
|
||||
@@ -79,20 +79,10 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence
|
||||
{
|
||||
using (IScope scope = ScopeProvider.CreateScope(repositoryCacheMode: RepositoryCacheMode.Scoped))
|
||||
{
|
||||
if (contentTypeIds != null)
|
||||
{
|
||||
scope.ReadLock(Constants.Locks.ContentTree);
|
||||
}
|
||||
|
||||
if (mediaTypeIds != null)
|
||||
{
|
||||
scope.ReadLock(Constants.Locks.MediaTree);
|
||||
}
|
||||
|
||||
if (memberTypeIds != null)
|
||||
{
|
||||
scope.ReadLock(Constants.Locks.MemberTree);
|
||||
}
|
||||
scope.ReadLock(Constants.Locks.ContentTree);
|
||||
scope.ReadLock(Constants.Locks.MediaTree);
|
||||
scope.ReadLock(Constants.Locks.MemberTree);
|
||||
|
||||
_repository.Rebuild(groupSize, contentTypeIds, mediaTypeIds, memberTypeIds);
|
||||
scope.Complete();
|
||||
|
||||
Reference in New Issue
Block a user