-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Can you please add a parameter to clean the cache? #48
Comments
Yikes, I never thought that hard about caches getting huge in the long run. I agree that this should happen automatically. I think the simplest way would be to delete files older than, say, 30 or 60 days. If someone wishes to delete things sooner, they can delete the cache via Just keeping the latest version of every app also seems OK, but if I install a huge app once and then never install/update it again, that file would remain in the cache virtually forever. So I think making cached files expire after a while is a better general solution. |
Also ended up with a 2GB cache. I think that ideally a mix of both your suggestions should be implemented - if there is a bigger app that updates somewhat frequently or the user has a lot of apps to install (or both), the cache will be needlessly large. So by default only keeping latest version and at the same time deleting files older than XX days to not leave things rotting would be good imo. |
For the record, I would report @Shawk7529 for spam, but I am sure github will do nothing. I am sorry for the offtopic. |
Thanks @pitsi, hiding, reporting, and blocking. |
Implemented with https://github.com/mvdan/fdroidcl/releases/tag/v0.6.0. |
I ran ncdu earlier to check what is using the few GB of my ~ and I came accross this for ~/.cache
and the 600MB of fdroidcl are all from old apks of bromite
How about making a parameter that cleans that cache, like apt's clean and autoclean? Also, I think it is pointless to cache more than one apk from each package, so a "delete everything but the newst one" option would also be useful.
Thank you in advance.
The text was updated successfully, but these errors were encountered: