Baseflow / Baseflow/flutter_cache_manager

The cached files aren't being removed after the stale duration is over!

Aperta
#446 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
809
Fork
510
Merge medio
6m
PR unite (30g)
1

Descrizione

## 🐛 The cached files aren't being removed after the stale duration is over!

With Custom Cache Manager, the stale duration isn't working! It's not removing the file after the stale duration is over. I had set the stale duration to 3 minutes, but the file was deleted even after more than 30 hours.

### Expected behavior
The cached files are supposed to be deleted after the stale duration of the file is over. But, the file continues to remain in the cache ruining the whole structure.

### Reproduction steps
Just cache a file with Custom Cache Manager, for DefaultCacheManager doesn't come with a stale duration option, and assign Stale Duration to anything, i assigned it 3 minutes to test it more efficiently. Then, I just invoked my function to see if the file is cached without displaying it, which I was doing with Cached_network_Image. I used the getFileFromCache function to get the file specifically and only from the cache, and it printed that the cached file exists, even after the day since is caching. Btw, remember I cached it for 3 minutes.

### Configuration

**Version:** flutter_cache_manager: ^3.3.1

**Platform:**
- [ ] :iphone: iOS
- [ ] :robot: Android

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the issue with Custom Cache Manager using a three-minute stale duration, then call getFileFromCache after the duration has elapsed. Done means the cached file is removed or is no longer returned from the cache; the issue does not name a source file or test to inspect.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
mobile-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.