fixing reset cache to delete toc cache properly