From e019f5d5057b982e023fda67c48e64e1786a24d8 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 31 Jul 2025 12:15:33 +0800 Subject: [PATCH] fix(api): reduce cache for announcements and releases to 1h --- .../gotson/komga/interfaces/api/rest/AnnouncementController.kt | 2 +- .../org/gotson/komga/interfaces/api/rest/ReleaseController.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt index 568af8488..6d7cc4b1f 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt @@ -35,7 +35,7 @@ class AnnouncementController( private val cache = Caffeine .newBuilder() - .expireAfterAccess(1, TimeUnit.DAYS) + .expireAfterAccess(1, TimeUnit.HOURS) .build() @GetMapping diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/ReleaseController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/ReleaseController.kt index 966454317..939e11970 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/ReleaseController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/ReleaseController.kt @@ -33,7 +33,7 @@ class ReleaseController( private val cache = Caffeine .newBuilder() - .expireAfterAccess(1, TimeUnit.DAYS) + .expireAfterAccess(1, TimeUnit.HOURS) .build>() @GetMapping