diff --git a/cache/manager.go b/cache/manager.go index 337165da0550b..a405e4849530b 100644 --- a/cache/manager.go +++ b/cache/manager.go @@ -1045,7 +1045,7 @@ func (cm *cacheManager) pruneOnce(ctx context.Context, ch chan client.UsageInfo, } totalSize := int64(0) - if opt.MaxStorage != 0 { + if opt.MaxStorage != 0 || opt.MinStorage != 0 || opt.Free != 0 { du, err := cm.DiskUsage(ctx, client.DiskUsageInfo{}) if err != nil { return err