Baseflow / Baseflow/flutter_cache_manager
DefaultCacheManager emptyCache() do not work
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
## 🐛 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100