Baseflow / Baseflow/flutter_cache_manager
Stale period not working properly
- Langage dominant
- Dart
- Étoiles
- 809
- Forks
- 510
- Merge moyen
- 6 min
- PR mergées (30 j)
- 1
Description
` 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;
} }`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- dart, flutter
- Domaine
- mobile
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100