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 @@