save cache to tmp