Use updateCache in buildCache for easier overriding.