diff --git a/pkg/client/cache.go b/pkg/client/cache.go index f1d46552..468412a6 100644 --- a/pkg/client/cache.go +++ b/pkg/client/cache.go @@ -51,5 +51,5 @@ func (c *ServiceCache) Wipe() { } func (l *cacheLine) live(dur time.Duration) bool { - return l.created.Before(time.Now().Add(-dur)) + return l.created.After(time.Now().Add(-dur)) } diff --git a/pkg/manifests/cache.go b/pkg/manifests/cache.go index 019e28c2..0ee60db5 100644 --- a/pkg/manifests/cache.go +++ b/pkg/manifests/cache.go @@ -67,7 +67,7 @@ func (c *ManifestCache) Wipe() { } func (l *cacheLine) live(dur time.Duration) bool { - return l.created.Before(time.Now().Add(-dur)) + return l.created.After(time.Now().Add(-dur)) } func (l *cacheLine) wipe() {