Baseflow / Baseflow/flutter_cache_manager

stalePeriod clarification

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

描述

i used to think that maxAgeCacheObject, which was i guess replaced with stalePeriod worked like so:
we download file -> mark some expiry date for it -> when it's expired we redownload it

with current docs it seems that's not the case
https://github.com/Baseflow/flutter_cache_manager/blob/46f0a0466d62350b48a520a5561fd59e0c546dda/flutter_cache_manager/lib/src/cache_manager.dart#L32-L33

so if i have stalePeriod that equals to 1 day and user opens my app each 12 hours, for instance, and the file is being reused, my cache will never be invalidated? if that's true, how do i change this?

贡献指南

打开贡献指南

调研方向

阅读 flutter_cache_manager/lib/src/cache_manager.dart 中引用的行,并将其中对 stalePeriod 的表述与当前文档进行比较。明确重用会刷新还是使缓存失效,并记录用户在受支持的情况下如何获得所请求的行为。由于该线程长期未获答复,预期的解决方案尚未确定。

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

评估

技术栈
dart
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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