diff --git a/src/environment_cache.go b/src/environment_cache.go index a8b9d3df..3a2c0538 100644 --- a/src/environment_cache.go +++ b/src/environment_cache.go @@ -60,6 +60,9 @@ func (fc *fileCache) get(key string) (string, bool) { if !ok { return "", false } + if co.TTL <= 0 { + return co.Value, true + } expired := time.Now().Unix() >= (co.Timestamp + int64(co.TTL)*60) if expired { fc.cache.remove(key)