mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix(api): reduce cache for announcements and releases to 1h
This commit is contained in:
parent
f9d9139bb2
commit
e019f5d505
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class AnnouncementController(
|
|||
private val cache =
|
||||
Caffeine
|
||||
.newBuilder()
|
||||
.expireAfterAccess(1, TimeUnit.DAYS)
|
||||
.expireAfterAccess(1, TimeUnit.HOURS)
|
||||
.build<String, JsonFeedDto?>()
|
||||
|
||||
@GetMapping
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class ReleaseController(
|
|||
private val cache =
|
||||
Caffeine
|
||||
.newBuilder()
|
||||
.expireAfterAccess(1, TimeUnit.DAYS)
|
||||
.expireAfterAccess(1, TimeUnit.HOURS)
|
||||
.build<String, List<GithubReleaseDto>>()
|
||||
|
||||
@GetMapping
|
||||
|
|
|
|||
Loading…
Reference in a new issue