Baseflow / Baseflow/flutter_cache_manager
DefaultCacheManager emptyCache() do not work
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 1
描述
## 🐛 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
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100