mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
reduce caching duration
This commit is contained in:
parent
c9dc88e58b
commit
55cb8583f4
1 changed files with 3 additions and 3 deletions
|
|
@ -5,13 +5,13 @@
|
|||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
{
|
||||
[ApiVersion("1")]
|
||||
[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 = 86400)]
|
||||
[ResponseCache(Duration = 14400)]
|
||||
public class BaseController : Controller
|
||||
{
|
||||
protected static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromDays(1);
|
||||
protected static readonly TimeSpan MemoryCacheExpirationDefault = TimeSpan.FromHours(4);
|
||||
protected readonly IMemoryCache MemoryCache;
|
||||
protected readonly SeedService SeedService;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue