[PR #67] [MERGED] [core] Add Custom Cache Manager #71

Closed
opened 2025-10-31 16:56:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feeddeck/feeddeck/pull/67
Author: @ricoberger
Created: 11/5/2023
Status: Merged
Merged: 11/5/2023
Merged by: @ricoberger

Base: mainHead: core-add-custom-cache-manager


📝 Commits (1)

  • 164ac41 [core] Add Custom Cache Manager

📊 Changes

4 files changed (+33 additions, -9 deletions)

View changed files

📝 app/lib/widgets/utils/cached_network_image.dart (+24 -4)
📝 app/pubspec.lock (+1 -1)
📝 app/pubspec.yaml (+1 -0)
📝 app/run.sh (+7 -4)

📄 Description

This commit adds a custom cache manager "CustomCacheManager" which is used in the "CachedNetworkImage" widget. The custom cache manager is required, so that we can adjust the stale periode of cached images. By default the package used 30 days as stale periode, but for our use case 7 days should be enough and we can reduce the storage used by the app.


🔄 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/feeddeck/feeddeck/pull/67 **Author:** [@ricoberger](https://github.com/ricoberger) **Created:** 11/5/2023 **Status:** ✅ Merged **Merged:** 11/5/2023 **Merged by:** [@ricoberger](https://github.com/ricoberger) **Base:** `main` ← **Head:** `core-add-custom-cache-manager` --- ### 📝 Commits (1) - [`164ac41`](https://github.com/feeddeck/feeddeck/commit/164ac410067a3b1222c8c17c5016923713364f49) [core] Add Custom Cache Manager ### 📊 Changes **4 files changed** (+33 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `app/lib/widgets/utils/cached_network_image.dart` (+24 -4) 📝 `app/pubspec.lock` (+1 -1) 📝 `app/pubspec.yaml` (+1 -0) 📝 `app/run.sh` (+7 -4) </details> ### 📄 Description This commit adds a custom cache manager "CustomCacheManager" which is used in the "CachedNetworkImage" widget. The custom cache manager is required, so that we can adjust the stale periode of cached images. By default the package used 30 days as stale periode, but for our use case 7 days should be enough and we can reduce the storage used by the app. <!-- Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz". If you add a breaking change within your PR you should add ":warning:" to the title, e.g. ":warning: [core] My breaking change" --> <!-- Description of what have been changed. Please also reference an issue, when available. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 16:56:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/feeddeck#71