Only save the resolver cache when the on-disk version is out of date.