Fix cache not being deleted