mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 16:42:24 +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 =
|
private val cache =
|
||||||
Caffeine
|
Caffeine
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
.expireAfterAccess(1, TimeUnit.DAYS)
|
.expireAfterAccess(1, TimeUnit.HOURS)
|
||||||
.build<String, JsonFeedDto?>()
|
.build<String, JsonFeedDto?>()
|
||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class ReleaseController(
|
||||||
private val cache =
|
private val cache =
|
||||||
Caffeine
|
Caffeine
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
.expireAfterAccess(1, TimeUnit.DAYS)
|
.expireAfterAccess(1, TimeUnit.HOURS)
|
||||||
.build<String, List<GithubReleaseDto>>()
|
.build<String, List<GithubReleaseDto>>()
|
||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue