Skip to content

Clean Cache on startup #85

Description

@boredsquirrel

Some user meant this was a problem. It can not harm to delete old cache from various flatpaks. The command for that is:

find ~/.var/app/*/cache/ -type f -mtime +7 -delete
touch ~/.cache-cleaner.log

printf """#!/bin/bash
sleep 30
rm ~/.cache-cleaner.log
find ~/.var/app/*/cache/ -type f -mtime +7 -print | tee >> ~/.cache-cleaner.log
find ~/.var/app/*/cache/ -type f -mtime +7 -delete
find ~/.cache/ -type f -mtime +7 -print | tee >> ~/.cache-cleaner.log
find ~/.cache/ -type f -mtime +7 -delete""" > ~/.config/autostart/cache-cleaner.sh

chmod +x ~/.config/autostart/cache-cleaner.sh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions