From 64827d9043ef85534a8595b8dbeb35ed3f620849 Mon Sep 17 00:00:00 2001 From: Marco Ketelaars Date: Mon, 25 Nov 2024 14:25:05 +0100 Subject: [PATCH] Disable cache for configuration query (#702) --- .../Modules/HealthChecks/Services/WtsHealthService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GeeksCoreLibrary/Modules/HealthChecks/Services/WtsHealthService.cs b/GeeksCoreLibrary/Modules/HealthChecks/Services/WtsHealthService.cs index ece7fb67..7246acf8 100644 --- a/GeeksCoreLibrary/Modules/HealthChecks/Services/WtsHealthService.cs +++ b/GeeksCoreLibrary/Modules/HealthChecks/Services/WtsHealthService.cs @@ -49,8 +49,7 @@ public WtsHealthService(IDatabaseConnection databaseConnection, IHttpContextAcce } var query = $"SELECT configuration, time_id, state, next_run FROM wts_services WHERE {String.Join(" AND ", conditions)}"; - var datatable = await databaseConnection.GetAsync(query); - + var datatable = await databaseConnection.GetAsync(query, skipCache: true); if (datatable.Rows.Count == 0) { return HealthCheckResult.Unhealthy("No data found");