mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
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:
parent
e1eca74fab
commit
8087b3af60
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue