Add ability to clear image cache on startup, and manually #1062
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This PR introduces a way to automatically clear image cache on startup. One issue that I've noticed is that the app size grows over time since image cache gets stored on the device. Because of this, the size of Thunder can grow quite large over a short period of time. This PR introduces two things:
I'm not too sure if the automatic check will happen properly as I'll have to run it over the next little bit in order to monitor app size (without uninstalling/reinstalling the app).
@micahmo Could you also do a check to see if it works on Android? As part of this, let me know what the system reports back, and what Thunder reports back for the cache size. On iOS, the image cache size and the system size differs, but that might be due to other temporary files.
Issue Being Fixed
Issue Number: N/A
Screenshots / Recordings
Checklist
semanticLabel
s where applicable for accessibility?