Baseflow / Baseflow/flutter_cache_manager

not empty my cache directory

未关闭
#377 4 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

DefaultCacheManager().emptyCache();

also this not working any idea

Future _deleteCacheDir() async {
final cacheDir = await getTemporaryDirectory();
if (cacheDir.existsSync()) {
cacheDir.deleteSync(recursive: true);
}
}

贡献指南

打开贡献指南

调研方向

首先使用 getTemporaryDirectory() 复现 DefaultCacheManager().emptyCache() 和 _deleteCacheDir() 示例。检查临时缓存目录及其内容是否被删除;操作完成后缓存为空即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。