hurshi / dio-http-cache

http cache lib for Flutter dio like RxCache
Apache License 2.0
274 stars 223 forks source link

cannot clear all cache #70

Closed Marcosmaliki closed 3 years ago

Marcosmaliki commented 3 years ago

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?

hurshi commented 3 years ago

Hello, thanks for your feedback, Please try this: https://github.com/hurshi/dio-http-cache/issues/62