diff --git a/src/FilterLists.Api/V1/Controllers/BaseController.cs b/src/FilterLists.Api/V1/Controllers/BaseController.cs index bb8a226cb..7222483e4 100644 --- a/src/FilterLists.Api/V1/Controllers/BaseController.cs +++ b/src/FilterLists.Api/V1/Controllers/BaseController.cs @@ -10,10 +10,10 @@ namespace FilterLists.Api.V1.Controllers [ApiVersion("1.0")] //TODO: use versioning without needing to manually specify in swagger-ui (https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/370) [Route("v{version:apiVersion}/[controller]")] - [ResponseCache(Duration = 14400)] + [ResponseCache(Duration = 3600)] public abstract class BaseController : Controller { - private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(4); + private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(1); protected readonly SeedService SeedService; private readonly IMemoryCache memoryCache; diff --git a/src/FilterLists.Services/Snapshot/SnapshotService.cs b/src/FilterLists.Services/Snapshot/SnapshotService.cs index 6631cccfe..2a84e280e 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotService.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotService.cs @@ -54,7 +54,6 @@ FROM snapshots_rules private async Task> GetListsToCapture(int batchSize) => await DbContext .FilterLists - .Where(l => l.Id != 526) //~2 million rules, too big for SnapshotService currently .OrderBy(l => l.Snapshots.Any()) .ThenByDescending(ifLastSnapFailed) .ThenBy(lastSnapTimestamp)