Skip to content

Commit

Permalink
Increase photo rail cache ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Sep 18, 2023
1 parent 14f9a09 commit 7abcb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis_cache.nim
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ proc cache*(data: List) {.async.} =
await setEx(data.listKey, listCacheTime, compress(toFlatty(data)))

proc cache*(data: PhotoRail; name: string) {.async.} =
await setEx("pr:" & toLower(name), baseCacheTime, compress(toFlatty(data)))
await setEx("pr:" & toLower(name), baseCacheTime * 2, compress(toFlatty(data)))

proc cache*(data: User) {.async.} =
if data.username.len == 0: return
Expand Down

0 comments on commit 7abcb48

Please sign in to comment.