mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-16 01:02:49 -05:00
Increase cache times
This commit is contained in:
@@ -21,7 +21,7 @@ const
|
||||
var
|
||||
token = ""
|
||||
tokenUpdated: Time
|
||||
tokenLifetime = initDuration(minutes=10)
|
||||
tokenLifetime = initDuration(hours=2)
|
||||
|
||||
template newClient() {.dirty.} =
|
||||
var client = newAsyncHttpClient()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user