Fix saving caching data after logout