mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Clean up cache code
This commit is contained in:
parent
9ad458ae25
commit
d01f62c5ae
2 changed files with 11 additions and 20 deletions
|
|
@ -41,5 +41,5 @@ proc createListRouter*(cfg: Config) =
|
|||
let list = await getCachedList(id=(@"id"))
|
||||
if list.id.len == 0:
|
||||
resp Http404
|
||||
await cache(list, time=listCacheTime)
|
||||
await cache(list)
|
||||
redirect("/" & list.username & "/lists/" & list.name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue