FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clear cache filesystem when emptying the store cache by js2702 · Pull Request #477 · Baseflow/flutter_cache_manager · GitHub

Clear cache filesystem when emptying the store cache - #477

Open
js2702 wants to merge 2 commits into
Baseflow:developfrom
SkillDevs:empty_fs
Open

Clear cache filesystem when emptying the store cache#477
js2702 wants to merge 2 commits into
Baseflow:developfrom
SkillDevs:empty_fs

Conversation

js2702 commented Dec 9, 2024

Copy link
Copy Markdown

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix

⤵️ What is the current behavior?

When there is a desync between the filesystem and the store those files are never cleaned up, filling up the filesystem. This desync can happen because of bugs in the library like the ones listed in #476.

🆕 What is the new behavior (if this is a feature change)?

When calling emptyCache we can also clean up the cache directory associated to the store to clean up dangling files as well.

💥 Does this PR introduce a breaking change?

It adds a method to the file system interface.

🐛 Recommendations for testing

Previously files were not deleted when calling removeFile(), so it only affects extra dangling files in the cache store.
So to test it just add an extra file and call emptyCache.�The current emptyCache test has been tweaked to account for this behavior.

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

cedvdb commented Apr 22, 2025

Copy link
Copy Markdown

@renefloor could you review this ? Can you consider adding additional maintainers ?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL