fix sync setting cache ready (with test)