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

This commit is contained in:
Azerelat
2016-01-17 13:19:18 +00:00
parent ea4d0fe701
commit 2901cceea9
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}