mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
#254 Removed the cache, we are now storing the plex information into the database.
There is a big structure change around this, also increased the default check time to be in hours.
This commit is contained in:
parent
af1c93620f
commit
2608e53399
29 changed files with 479 additions and 170 deletions
|
@ -53,8 +53,6 @@ using Nancy.Json;
|
|||
|
||||
using Ninject;
|
||||
|
||||
using StackExchange.Profiling;
|
||||
|
||||
namespace PlexRequests.UI
|
||||
{
|
||||
public class Bootstrapper : NinjectNancyBootstrapper
|
||||
|
@ -88,10 +86,7 @@ namespace PlexRequests.UI
|
|||
|
||||
base.ApplicationStartup(container, pipelines);
|
||||
|
||||
#if DEBUG
|
||||
pipelines.BeforeRequest += StartProfiler;
|
||||
pipelines.AfterRequest += EndProfiler;
|
||||
#endif
|
||||
|
||||
var settings = new SettingsServiceV2<PlexRequestSettings>(new SettingsJsonRepository(new DbConfiguration(new SqliteFactory()), new MemoryCacheProvider()));
|
||||
var baseUrl = settings.GetSettings().BaseUrl;
|
||||
var redirect = string.IsNullOrEmpty(baseUrl) ? "~/login" : $"~/{baseUrl}/login";
|
||||
|
@ -198,15 +193,5 @@ namespace PlexRequests.UI
|
|||
loc.SetContainer(container);
|
||||
}
|
||||
|
||||
private static Response StartProfiler(NancyContext ctx)
|
||||
{
|
||||
MiniProfiler.Start();
|
||||
return null;
|
||||
}
|
||||
|
||||
private static void EndProfiler(NancyContext ctx)
|
||||
{
|
||||
MiniProfiler.Stop();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue