From fea7aafcfaed1e888bc1d2557e96ff0194c0fd85 Mon Sep 17 00:00:00 2001 From: kipusoep Date: Fri, 11 Jul 2014 19:38:26 +0200 Subject: [PATCH] [BugFix] Fixed an issue with the installer (table does not exist: #14) --- Properties/AssemblyInfo.cs | 4 ++-- Repositories/UrlTrackerRepository.cs | 5 ++++- UI/UrlTrackerInfo.aspx | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 53eda9d..01152f9 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -30,8 +30,8 @@ // Build Number // Revision // -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.0.1.0")] +[assembly: AssemblyFileVersion("3.0.1.0")] // SQL [assembly: WebResource("InfoCaster.Umbraco.UrlTracker.SQL.create-table-1.sql", "text/plain")] diff --git a/Repositories/UrlTrackerRepository.cs b/Repositories/UrlTrackerRepository.cs index 0f45634..4d71606 100644 --- a/Repositories/UrlTrackerRepository.cs +++ b/Repositories/UrlTrackerRepository.cs @@ -528,12 +528,15 @@ public static void ReloadForcedRedirectsCache() { lock (_cacheLock) { - _forcedRedirectsCache = GetUrlTrackerEntries(null, null, onlyForcedRedirects: true); + if (GetUrlTrackerTableExists()) + _forcedRedirectsCache = GetUrlTrackerEntries(null, null, onlyForcedRedirects: true); } } public static List GetForcedRedirects() { + if (_forcedRedirectsCache == null) + ReloadForcedRedirectsCache(); return _forcedRedirectsCache; } #endregion diff --git a/UI/UrlTrackerInfo.aspx b/UI/UrlTrackerInfo.aspx index ffd7c80..fbd4813 100644 --- a/UI/UrlTrackerInfo.aspx +++ b/UI/UrlTrackerInfo.aspx @@ -80,6 +80,12 @@
    +
  • + 3.0.1 [2014/07/09] +
      +
    • [BugFix] Fixed an issue with the installer (table does not exist: #14)
    • +
    +
  • 3.0.0 [2014/06/27]