Makes sure a cache key wasn’t invalidated in the meantime.