handling more changes in config when comparing a config which implies cache invalidation