1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-07 20:45:36 -05:00

Clean up cache code

This commit is contained in:
Zed
2020-06-02 22:36:02 +02:00
parent 9ad458ae25
commit d01f62c5ae
2 changed files with 11 additions and 20 deletions

View File

@@ -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)