Fix cache code And cart rules