From 0354cf4a94202a65d77e0fa2550ea918f8e75bee Mon Sep 17 00:00:00 2001 From: devhl Date: Tue, 12 Dec 2023 20:52:14 -0500 Subject: [PATCH] minor time to live provider change --- src/CocApi.Cache/Common/TimeToLiveProvider.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CocApi.Cache/Common/TimeToLiveProvider.cs b/src/CocApi.Cache/Common/TimeToLiveProvider.cs index b0b4bd0..56c092c 100644 --- a/src/CocApi.Cache/Common/TimeToLiveProvider.cs +++ b/src/CocApi.Cache/Common/TimeToLiveProvider.cs @@ -1,7 +1,6 @@ using System; using System.Net; using System.Threading.Tasks; -using CocApi.Rest.Apis; using CocApi.Rest.Client; using CocApi.Rest.Models; using Microsoft.Extensions.Logging; @@ -86,7 +85,7 @@ protected virtual ValueTask TimeToLiveAsync(IOk apiResponse) whe if (!Clash.IsCwlEnabled || (model?.State == Rest.Models.GroupState.Ended && DateTime.UtcNow.Month == model.Season.Month) || - (model == null && DateTime.UtcNow.Day >= 3)) + (model == null && DateTime.UtcNow.Day >= 4)) return new ValueTask( new DateTime(DateTime.UtcNow.Year, DateTime.UtcNow.Month, 1) .AddMonths(1)