reduce cache time down to 30 secs (#814)

* update nugets

* reduce in-memory cache and response cache down to 30 seconds
This commit is contained in:
Collin M. Barrett 2019-06-22 21:14:49 +00:00 committed by GitHub
parent e1eca74fab
commit 8087b3af60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,10 +9,10 @@ namespace FilterLists.Api.V1.Controllers
{
[ApiVersion("1.0")]
[Route("v{version:apiVersion}/[controller]")]
[ResponseCache(Duration = 86400)]
[ResponseCache(Duration = 30)]
public abstract class BaseController : Controller
{
private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(24);
private static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromSeconds(30);
protected readonly SeedService SeedService;
private readonly IMemoryCache memoryCache;