Browse code

Set UtilizeCache to false on cache miss Signed-off-by: Anandkumar Patel <anandkumarpatel@gmail.com>

Signed-off-by: AnandkumarPatel <anandkumarpatel@gmail.com>

AnandkumarPatel authored on 2015/02/25 11:16:57
Showing 1 changed files
... ...
@@ -512,6 +512,8 @@ func (b *Builder) probeCache() (bool, error) {
512 512
 			return true, nil
513 513
 		} else {
514 514
 			log.Debugf("[BUILDER] Cache miss")
515
+			// after a miss we no longer need to probe
516
+			b.UtilizeCache = false
515 517
 		}
516 518
 	}
517 519
 	return false, nil