Can't seem to get a working #cron job to clear the cache for my #mastodon server to save my life.

Tire of having to manually clear this thing daily. @Gargron what do you suggest?

@matt Can you show me what your crontab looks like?

@Gargron I tried adding this which I found on some site but doesn't do the trick.

@matt Generally speaking you can execute the command in the crontab from your shell to test if it works

@Gargron Is it possible you have documentation of a script you use to clear the cache?


@matt 0 5 * * 1 cd /home/mastodon/live && RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days=30

· · Web · 1 · 1 · 2

@Gargron wow, Now I see that I was totally overthinking it.

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!