mirror of
https://github.com/zedeus/nitter.git
synced 2024-11-13 12:11:05 +00:00
Fix gallery caching to prevent redundant requests
This commit is contained in:
parent
18cf95ed77
commit
ab0c487778
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ proc cache*(data: List) {.async.} =
|
|||
await setex(data.listKey, listCacheTime, compress(toFlatty(data)))
|
||||
|
||||
proc cache*(data: PhotoRail; name: string) {.async.} =
|
||||
await setex("pr:" & name, baseCacheTime, compress(toFlatty(data)))
|
||||
await setex("pr:" & toLower(name), baseCacheTime, compress(toFlatty(data)))
|
||||
|
||||
proc cache*(data: Profile) {.async.} =
|
||||
if data.username.len == 0 or data.id.len == 0: return
|
||||
|
|
Loading…
Reference in a new issue