fix(api): reduce cache for announcements and releases to 1h

This commit is contained in:
Gauthier Roebroeck 2025-07-31 12:15:33 +08:00
parent f9d9139bb2
commit e019f5d505
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ class AnnouncementController(
private val cache =
Caffeine
.newBuilder()
.expireAfterAccess(1, TimeUnit.DAYS)
.expireAfterAccess(1, TimeUnit.HOURS)
.build<String, JsonFeedDto?>()
@GetMapping

View file

@ -33,7 +33,7 @@ class ReleaseController(
private val cache =
Caffeine
.newBuilder()
.expireAfterAccess(1, TimeUnit.DAYS)
.expireAfterAccess(1, TimeUnit.HOURS)
.build<String, List<GithubReleaseDto>>()
@GetMapping