Clean up cache code

This commit is contained in:
Zed 2020-06-02 22:36:02 +02:00
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)