Baseflow / Baseflow/flutter_cache_manager
Stale period not working properly
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
` Im using **flutter_cache_manager: ^3.3.1** and the stale period its not working properly. its not automatically deleting the files.
final cacheManager = CacheManager(
Config(
id,
stalePeriod: Duration(seconds: 60),
maxNrOfCacheObjects: 10,
),
);
try {
final fileStream = cacheManager.getFileStream(_syncMusicUrl);
await for (var response in fileStream) {
if (response is FileInfo) {
_cacheMusicPath = response.file.path;
return true;
} else if (response is DownloadProgress) {}
}
return false;
} catch (error) {
syncSituation.value = "sync";
update();
return false;
} }`
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reproducing the report with flutter_cache_manager 3.3.1, a 60-second stalePeriod, and getFileStream as shown in the issue. Trace the cache cleanup behavior from this usage and verify that cached files are removed after the configured stale period.
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
- Abbastanza chiara
- Idoneità per principianti
- 42/100