Baseflow / Baseflow/flutter_cache_manager
removeFile don't remove line into database
- Ngôn ngữ chính
- Dart
- Star
- 809
- Fork
- 510
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
## 🐛 Bug Report
When i call the `removeFile()` i see that the cached file is deleted into `/data/user/0/fr.serialtrip/cache/libCachedImageData`
But not into the database **libCachedImageData.db**
When I see the code, i don't understand. Is it a bug ?
> Future removeCachedFile(CacheObject cacheObject) async {
final provider = await _cacheInfoRepository;
final toRemove = [];
unawaited(_removeCachedFile(cacheObject, toRemove));
await provider.deleteAll(toRemove);
}
With this code `unawaited(_removeCachedFile(cacheObject, toRemove));` it's impossible to delete the IDs from database (SQLite in my case) because it's not an await. So the toRemove is empty on the next line.
### Configuration
**Version:** 2.1.1
**Platform:**
- [x] :robot: Android
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại removeCachedFile(CacheObject cacheObject) và theo dõi _removeCachedFile để xem khi nào các ID được thêm vào toRemove. Xác minh rằng việc xóa trong cơ sở dữ liệu diễn ra sau khi công việc bất đồng bộ đó hoàn tất, sau đó tái hiện trường hợp xóa bộ nhớ đệm trên Android và xác nhận rằng cả tệp được lưu trong bộ nhớ đệm lẫn hàng tương ứng trong cơ sở dữ liệu đều được xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart, flutter, sqlite
- Lĩnh vực
- database, mobile
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100