diff --git a/cache/manager.go b/cache/manager.go index 29866bf6..9adaceaa 100644 --- a/cache/manager.go +++ b/cache/manager.go @@ -117,7 +117,7 @@ func (cm *cacheManager) get(ctx context.Context, id string, opts ...RefOption) ( } func (cm *cacheManager) load(ctx context.Context, id string, opts ...RefOption) (*cacheRecord, error) { - if rec, ok := cm.records[id]; ok { + if rec, ok := cm.records[id]; ok && !rec.dead { return rec, nil }