[PR #4809] [MERGED] feat: support clearing caches and fix unable to load image #6458

Closed
opened 2026-03-23 22:23:18 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/4809
Author: @LucasXu0
Created: 3/4/2024
Status: Merged
Merged: 3/4/2024
Merged by: @LucasXu0

Base: mainHead: clear_cache


📝 Commits (5)

  • f4369b7 feat: support clearing caches
  • 80ae912 fix: try to clear the image cache when loading failed.
  • 7b4458f feat: clear cache on mobile
  • 3b95207 Merge branch 'main' into clear_cache
  • c86c618 chore: add error log

📊 Changes

13 files changed (+229 additions, -27 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/support_setting_group.dart (+29 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart (+1 -3)
frontend/appflowy_flutter/lib/shared/appflowy_cache_manager.dart (+61 -0)
📝 frontend/appflowy_flutter/lib/shared/appflowy_network_image.dart (+9 -1)
📝 frontend/appflowy_flutter/lib/shared/custom_image_cache_manager.dart (+16 -1)
📝 frontend/appflowy_flutter/lib/startup/deps_resolver.dart (+8 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/setting_file_import_appflowy_data_view.dart (+0 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_export_file_widget.dart (+3 -3)
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_cache_widget.dart (+80 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_customize_location_view.dart (+6 -7)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_exporter_widget.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_system_view.dart (+10 -8)
📝 frontend/resources/translations/en.json (+5 -1)

📄 Description

Feature Preview

closes https://github.com/AppFlowy-IO/AppFlowy/issues/4790

  • allow the users to clear the images, fonts, and tmp files.
Screenshot 2024-03-04 at 10 19 59 Screenshot 2024-03-04 at 10 41 36

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/4809 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/4/2024 **Status:** ✅ Merged **Merged:** 3/4/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `clear_cache` --- ### 📝 Commits (5) - [`f4369b7`](https://github.com/AppFlowy-IO/AppFlowy/commit/f4369b726c8cbbc1fa278392577cbf374a5288ff) feat: support clearing caches - [`80ae912`](https://github.com/AppFlowy-IO/AppFlowy/commit/80ae912837343925054b1234d380aec621a40cdc) fix: try to clear the image cache when loading failed. - [`7b4458f`](https://github.com/AppFlowy-IO/AppFlowy/commit/7b4458fb06fc3c89a961ab399446cb94e1d7033d) feat: clear cache on mobile - [`3b95207`](https://github.com/AppFlowy-IO/AppFlowy/commit/3b952078d80b9e9f54d7a6fbf778e7b788ed5853) Merge branch 'main' into clear_cache - [`c86c618`](https://github.com/AppFlowy-IO/AppFlowy/commit/c86c618e8070adf32258e6631ca5d95d6a5f57e5) chore: add error log ### 📊 Changes **13 files changed** (+229 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/support_setting_group.dart` (+29 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart` (+1 -3) ➕ `frontend/appflowy_flutter/lib/shared/appflowy_cache_manager.dart` (+61 -0) 📝 `frontend/appflowy_flutter/lib/shared/appflowy_network_image.dart` (+9 -1) 📝 `frontend/appflowy_flutter/lib/shared/custom_image_cache_manager.dart` (+16 -1) 📝 `frontend/appflowy_flutter/lib/startup/deps_resolver.dart` (+8 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/setting_file_import_appflowy_data_view.dart` (+0 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_export_file_widget.dart` (+3 -3) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_cache_widget.dart` (+80 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_customize_location_view.dart` (+6 -7) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/files/settings_file_exporter_widget.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_system_view.dart` (+10 -8) 📝 `frontend/resources/translations/en.json` (+5 -1) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview closes https://github.com/AppFlowy-IO/AppFlowy/issues/4790 - allow the users to clear the images, fonts, and tmp files. <img width="1433" alt="Screenshot 2024-03-04 at 10 19 59" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/e3147422-b277-44e6-9021-57a6a603a82f"> <img width="521" alt="Screenshot 2024-03-04 at 10 41 36" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/e67a1c6b-0b3a-45d5-8fdf-130b70cea4b9"> <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:23:18 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#6458
No description provided.