aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-15 14:34:04 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-15 14:34:04 +0100
commit81b979256a03eba4907f843d4f84a71535ca7c85 (patch)
tree3a7d0f51c72096e4005fb2e9787c9194091542bb
parent1f7eb366a985c70493ae6f59e8bb900a0f86ec8e (diff)
downloadlettnytt-81b979256a03eba4907f843d4f84a71535ca7c85.tar.xz
lettnytt-81b979256a03eba4907f843d4f84a71535ca7c85.zip
refactor: Set StaleTime to 30 min
-rw-r--r--src/Services/GrabberService.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Services/GrabberService.cs b/src/Services/GrabberService.cs
index df20696..f406d28 100644
--- a/src/Services/GrabberService.cs
+++ b/src/Services/GrabberService.cs
@@ -1,6 +1,5 @@
using System.Security.Cryptography;
using System.Text;
-using AngleSharp.Dom;
using AngleSharp.Html.Parser;
using I2R.LightNews.Utilities;
@@ -11,7 +10,7 @@ public class GrabberService
private readonly ILogger<GrabberService> _logger;
private readonly HttpClient _http;
private const string NrkPrefix = "nrkno";
- private const int StaleTime = 100800;
+ private const int StaleTime = 1800;
private static AppPath _cachePath => new() {
HostPath = "AppData/__sitecache"