commitWithCache