Merge branch 'v8/8.10' into v8/8.11

This commit is contained in:
Sebastiaan Janssen
2021-03-01 16:04:13 +01:00
4 changed files with 145 additions and 56 deletions

View File

@@ -62,12 +62,10 @@ namespace Umbraco.Core.Services.Implement
//start with the deepest id
ids.Reverse();
using (var scope = ScopeProvider.CreateScope())
using (var scope = ScopeProvider.CreateScope(autoComplete: true))
{
//This will retrieve from cache!
var entries = _publicAccessRepository.GetMany().ToArray();
scope.Complete();
var entries = _publicAccessRepository.GetMany().ToList();
foreach (var id in ids)
{
var found = entries.FirstOrDefault(x => x.ProtectedNodeId == id);