Increase cache times

This commit is contained in:
Zed 2019-06-25 01:00:23 +02:00
parent 06a54a5c32
commit 4bf38f71f3
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ const
var
token = ""
tokenUpdated: Time
tokenLifetime = initDuration(minutes=10)
tokenLifetime = initDuration(hours=2)
template newClient() {.dirty.} =
var client = newAsyncHttpClient()

View file

@ -7,7 +7,7 @@ withDb:
except DbError:
discard
var profileCacheTime = initDuration(seconds=60)
var profileCacheTime = initDuration(minutes=10)
proc outdated(profile: Profile): bool =
getTime() - profile.updated > profileCacheTime