diff options
Diffstat (limited to 'cache/filecache/filecache.go')
-rw-r--r-- | cache/filecache/filecache.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go index d4e3f5d6a..6ad417117 100644 --- a/cache/filecache/filecache.go +++ b/cache/filecache/filecache.go @@ -274,7 +274,7 @@ func (c *Cache) isExpired(modTime time.Time) bool { if c.maxAge < 0 { return false } - return c.maxAge == 0 || time.Now().Sub(modTime) > c.maxAge + return c.maxAge == 0 || time.Since(modTime) > c.maxAge } // For testing |