I can't clear all cache when the user logs out of the app. Here's my code
DioCacheManager cacheManager = DioCacheManager(CacheConfig(baseUrl: baseUrl)); cacheManager.clearAll();
I'm sorry if this has been asked and answered. Am I doing it wrong? Should I call cacheManager.clearAll() asynchronously?
I can't clear all cache when the user logs out of the app. Here's my code
DioCacheManager cacheManager = DioCacheManager(CacheConfig(baseUrl: baseUrl)); cacheManager.clearAll();
I'm sorry if this has been asked and answered. Am I doing it wrong? Should I call cacheManager.clearAll() asynchronously?