Baseflow / Baseflow/flutter_cache_manager
The cached files aren't being removed after the stale duration is over!
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 1
描述
## 🐛 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
贡献指南
调研方向
使用三分钟的过期时长复现 Custom Cache Manager 的问题,然后在该时长经过后调用 getFileFromCache。缓存的文件被移除或不再从缓存中返回即表示完成;该问题未指定要检查的源文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- mobile-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100