Baseflow / Baseflow/flutter_cache_manager
Exception after clearing cache, the code tries to delete not existing image file
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
After executing
await DefaultCacheManager().emptyCache();
to clear cache, and immediately refresh images, I get exceptions in the library code trying to delete non existing files.
**I have noticed 3 missing awaits when calling _removeCachedFile in cache_store.dart. Adding the 3 missing awaits solves the issue for me...**
I think missing awaits calling _removeCachedFile produces internal awaits not waiting code execution, and that's the reason exceptions trying to delete non existing files, even if the code checked that the file exists.
Can anybody add the missing awaits in the code please?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Ispeziona cache_store.dart e individua le tre chiamate a _removeCachedFile descritte nell’issue. Inizia tracciando il flusso di svuotamento della cache e aggiornamento delle immagini, quindi verifica il comportamento svuotando la cache e aggiornando immediatamente le immagini. Il lavoro è completato quando le eccezioni segnalate non si verificano più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 52/100