cleaned cache code
updated cache