From 17cdc527a385d992f670618cf73b669a4cd7dc34 Mon Sep 17 00:00:00 2001 From: hartvig Date: Tue, 10 Aug 2010 09:40:46 +0000 Subject: [PATCH] Fixes 28485, umbraco.config constantly being recreated after publish [TFS Changeset #75277] --- umbraco/presentation/content.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/umbraco/presentation/content.cs b/umbraco/presentation/content.cs index a5aa43f6d8..75ac07b0c0 100644 --- a/umbraco/presentation/content.cs +++ b/umbraco/presentation/content.cs @@ -1026,6 +1026,11 @@ order by umbracoNode.level, umbracoNode.sortOrder"; Trace.Write(string.Format("Saved content on thread '{0}' in {1} (Threadpool? {2})", Thread.CurrentThread.Name, stopWatch.Elapsed, Thread.CurrentThread.IsThreadPoolThread.ToString())); Log.Add(LogTypes.Debug, staticUser, -1, string.Format("Xml saved in {0}", stopWatch.Elapsed)); + + // Clear persistence flag + HttpContext.Current.Application.Lock(); + HttpContext.Current.Application[PersistenceFlagContextKey] = null; + HttpContext.Current.Application.UnLock(); } catch (Exception ee) {