From 2bff1bfbb6e1fc2673e5a7388eaa70dbc215f487 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 13 Jul 2017 14:20:29 +0200 Subject: [PATCH] U4-10121 - properly dispose context --- src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs b/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs index 3ebfe25ff8..e802a9c0fa 100644 --- a/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs +++ b/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs @@ -797,9 +797,6 @@ namespace Umbraco.Web.Cache //TODO: We should remove this in v8, this is a backwards compat hack and is needed because when we are using Deploy, the events will be raised on a background //thread which means that cache refreshers will also execute on a background thread and in many cases developers may be using UmbracoContext.Current in their //cache refresher handlers, so before we execute all of the events, we'll ensure a context - // - // note that this means we must *exclusively* use this method in a background task else we'd replace and dispose a real context - // UmbracoContext tempContext = null; if (UmbracoContext.Current == null) {