This commit is contained in:
Stephan
2018-05-02 17:44:14 +02:00
parent 2246e5bc2f
commit 93adda2e4a
3 changed files with 39 additions and 32 deletions

View File

@@ -815,10 +815,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
switch (payload.ChangeType)
{
case DomainChangeTypes.RefreshAll:
//fixme why this check?
if (!(_serviceContext.DomainService is DomainService))
throw new Exception("oops");
using (var scope = _scopeProvider.CreateScope())
{
scope.ReadLock(Constants.Locks.Domains);