mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
bump cache up to 24 hours
This commit is contained in:
parent
3591648d05
commit
58972d4a81
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue