Baseflow / Baseflow/flutter_cache_manager
DefaultCacheManager emptyCache() do not work
- Vorherrschende Sprache
- Dart
- Sterne
- 809
- Forks
- 510
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
## 🐛 Bug Report
Hi
I'm using DefaultCacheManager to read a file from an URL like bellow :
```
DefaultCacheManager().emptyCache();
file = await DefaultCacheManager()
.getSingleFile(url)
.onError((error, stackTrace) {
isRead = false;
return fil;
});
```
and next time I change file content but first content is returned and emptyCache() do not work .
I tried like below too :
```
DefaultCacheManager dfcm = new DefaultCacheManager();
dfcm.emptyCache();
file = await dfcm
.getSingleFile(url)
.onError((error, stackTrace) {
isRead = false;
return fil;
});
```
### Expected behavior
### Reproduction steps
### Configuration
**Version:** flutter_cache_manager: ^3.3.0
**Platform:**
- [x] :robot: Android
Beitragsleitfaden
Rechercherichtung
Start by reproducing the Android behavior with DefaultCacheManager.emptyCache() followed by getSingleFile(url), using flutter_cache_manager 3.3.0. Check how the two calls are sequenced and identify the relevant cache-manager entry point. Done means the reproduction returns the updated file content after the cache is emptied, with a regression test covering the behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100