save the cache