Fixes: U4-5121 umbraco.content launches threadpool threads to reload the xml cache which causes lots of other issues

Conflicts:
	src/Umbraco.Web/umbraco.presentation/content.cs
This commit is contained in:
Shannon
2014-06-25 19:02:49 +10:00
parent 72991334c4
commit 859fbaaa05
2 changed files with 52 additions and 165 deletions

View File

@@ -498,7 +498,6 @@ namespace Umbraco.Web
app.BeginRequest += (sender, e) =>
{
var httpContext = ((HttpApplication)sender).Context;
httpContext.Trace.Write("UmbracoModule", "Umbraco request begins");
LogHelper.Debug<UmbracoModule>("Begin request: {0}.", () => httpContext.Request.Url);
BeginRequest(new HttpContextWrapper(httpContext));
};
@@ -523,9 +522,8 @@ namespace Umbraco.Web
var httpContext = ((HttpApplication)sender).Context;
if (UmbracoContext.Current != null && UmbracoContext.Current.IsFrontEndUmbracoRequest)
{
//write the trace output for diagnostics at the end of the request
httpContext.Trace.Write("UmbracoModule", "Umbraco request completed");
LogHelper.Debug<UmbracoModule>("Total milliseconds for umbraco request to process: " + DateTime.Now.Subtract(UmbracoContext.Current.ObjectCreated).TotalMilliseconds);
LogHelper.Debug<UmbracoModule>(
"Total milliseconds for umbraco request to process: {0}", () => DateTime.Now.Subtract(UmbracoContext.Current.ObjectCreated).TotalMilliseconds);
}
OnEndRequest(new EventArgs());