1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

Increase default cache time to 10 minutes

This commit is contained in:
Johannes Moos 2018-04-11 18:11:09 +02:00 committed by Benedikt Rudolph
parent d5de4b8f65
commit e4ec6591b9

View file

@ -49,7 +49,7 @@ func fromCache(key string) (Parsed, bool) {
}
func toCache(key string, val Parsed) {
val["ttl"] = time.Now().Add(5 * time.Minute)
val["ttl"] = time.Now().Add(10 * time.Minute)
Cache.Lock()
Cache.m[key] = val
Cache.Unlock()