finish cache