From 9e3ca512869e048cfb79c6ced511b945dee982c7 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 3 Apr 2017 17:17:31 +1000 Subject: [PATCH] fixes build error... though that check will need to be put back in --- src/Umbraco.Core/PluginManager.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Core/PluginManager.cs b/src/Umbraco.Core/PluginManager.cs index f05ae561e3..b51be56ee8 100644 --- a/src/Umbraco.Core/PluginManager.cs +++ b/src/Umbraco.Core/PluginManager.cs @@ -277,7 +277,7 @@ namespace Umbraco.Core uniqInfos.Add(info.FullName); hashCombiner.AddFileSystemItem(info); } - } + } return ConvertHashToInt64(hashCombiner.GetCombinedHashCode()); } @@ -449,10 +449,7 @@ namespace Umbraco.Core // at the moment we write the cache to disk every time we update it. ideally we defer the writing // since all the updates are going to happen in a row when Umbraco starts. that being said, the // file is small enough, so it is not a priority. - WriteCache(); - var dir = Path.GetDirectoryName(filePath); - if (Directory.Exists(dir) == false) - Directory.CreateDirectory(dir); + WriteCache(); } #endregion