YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
84 stars 34 forks source link

Removing old cache items? #278

Closed binarydad closed 2 years ago

binarydad commented 3 years ago

Describe the bug

Old cache item (images, etc) are not removed. I have items from my original installation back in November 2020 in the /var/www/mastodon/live/public/system/cache/media_attachments/ directory. Should there be a process to remove these, either manually or automatically?

Context

cidneyhamilton commented 2 years ago

Likewise. I've had to SSH into my server several times to remove these manually to clear up space. This seems like something that should either be automated, doable from the front-end, or at the very least, documented.

yalh76 commented 2 years ago

If you find something in mastodon documentation, you can try to do a PR :)

azbulutlu commented 2 years ago

Mastodon admin tools do come with some command lines to remove old media older than certain number of days. https://docs.joinmastodon.org/admin/tootctl/#media

they do require setting a cron job or use SSH (not sure why they are not available on front-end)