Baseflow / Baseflow/flutter_cache_manager

DefaultCacheManager emptyCache() do not work

オープン
#391 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。