Skip to content
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

Add a cache-cleaner to Kinoite / Silverblue #437

Closed
boredsquirrel opened this issue Mar 20, 2023 · 5 comments
Closed

Add a cache-cleaner to Kinoite / Silverblue #437

boredsquirrel opened this issue Mar 20, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@boredsquirrel
Copy link

Is your feature request related to a problem? Please describe.
A Problem can be if cache older than x days clutters the system.

Describe the solution you'd like
A tool cleaning the unused cache on shutdown, so that no running application is affected (even though its older than x days so they wouldnt be anyways)

Here is a solution for it using a systemd service

Describe alternatives you've considered
Adding it manually.

@boredsquirrel boredsquirrel added the enhancement New feature or request label Mar 20, 2023
@miabbott
Copy link
Member

What is the exact problem of having the older cache present on the system?

I would be interested in knowing those details before suggesting any changes to either Kinoite/Silverblue.

@travier
Copy link
Member

travier commented Mar 20, 2023

Application should write their cache in a tmpfs / temporary folder if they expect it to be cleaned up on reboot.

Otherwise, arbitrarily cleaning cache has no benefits.

@travier travier closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
@boredsquirrel
Copy link
Author

Dealing with misbehaving applications and Flatpaks using their own cache, which is not deleted as far as I know.

This is a workaround for a different problem. I know the /tmp should be used but its not, apart from some system applications in my experience.

Personally I had 4GB or cache only in the ~/.cache folder, which may be considered as bloat.

Maybe a better solution would be integrating this functionality into DEs with a storage limit warning and Interface.

@travier
Copy link
Member

travier commented Mar 20, 2023

Arbitrarily deleting the entire cache will penalize applications that use it correctly. If an application behaves incorrectly then you need to identify it and then file a bug for it.

@boredsquirrel
Copy link
Author

Yes this is true, uncomplete solution the apps themselves should do.

I know on Android in the past is was like that, nowadays it works and this is not needed.

For the meantime I will use this anyways as a fallback and analyse what bundles up cache and do issue reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants