Baseflow / Baseflow/flutter_cache_manager
DefaultCacheManager emptyCache() do not work
- Lenguaje dominante
- Dart
- Estrellas
- 809
- Forks
- 510
- Merge medio
- 6 min
- PR fusionados (30 d)
- 1
Descripción
## 🐛 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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100