bump cache up to 24 hours

This commit is contained in:
Collin M. Barrett 2018-11-17 10:06:24 -06:00
parent 3591648d05
commit 58972d4a81

View file

@ -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 = 3600)]
[ResponseCache(Duration = 86400)]
public abstract class BaseController : Controller
{
private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(1);
private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(24);
protected readonly SeedService SeedService;
private readonly IMemoryCache memoryCache;