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

This commit is contained in:
Shannon
2014-06-25 18:56:51 +10:00
parent 0b678f1d3b
commit 5fdcec6904
2 changed files with 53 additions and 166 deletions

View File

@@ -584,7 +584,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));
};
@@ -609,9 +608,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());