Fix editing template and show warning message when using runtime mode production

This commit is contained in:
Ronald Barendse
2022-07-14 22:48:43 +02:00
parent db90b16cb1
commit 802f2baaa0
6 changed files with 715 additions and 700 deletions

View File

@@ -597,7 +597,7 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
{ "assemblyVersion", _umbracoVersion.AssemblyVersion?.ToString() }
};
app.Add("runtimeMode", _runtimeSettings.Mode.ToString());
//the value is the hash of the version, cdf version and the configured state
app.Add("cacheBuster", $"{version}.{_runtimeState.Level}.{_runtimeMinifier.CacheBuster}".GenerateHash());