Private GIT

Skip to content
Snippets Groups Projects
Commit 2901ccee authored by Azerelat's avatar Azerelat
Browse files

Fix cache items not expiring and change redirect to a temp one as we can now change the base path

parent ea4d0fe7
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ namespace Jackett.Indexers
protected void CleanCache()
{
foreach (var expired in cache.Where(i => i.Created - DateTime.Now > cacheTime).ToList())
foreach (var expired in cache.Where(i => DateTime.Now - i.Created > cacheTime).ToList())
{
cache.Remove(expired);
}
......
......@@ -26,7 +26,7 @@ namespace Jackett.Utils
if (string.IsNullOrWhiteSpace(url.AbsolutePath) || url.AbsolutePath == "/")
{
// 301 is the status code of permanent redirect
context.Response.StatusCode = 301;
context.Response.StatusCode = 302;
var redir = Startup.BasePath + "Admin/Dashboard";
Engine.Logger.Info("redirecting to " + redir);
context.Response.Headers.Set("Location", redir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment