Also purge preview-cards cache and orphaned media

This commit is contained in:
Johannes Zellner 2022-11-17 18:10:07 +01:00
parent 49b7133ad4
commit 87e0460613
1 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,14 @@
set -eu
echo "=> Cleanup cached media"
echo "=> Cleanup"
cd /app/code
./bin/tootctl media remove
echo "==> media cache ..."
./bin/tootctl media remove --days=7
echo "==> orphaned media ..."
./bin/tootctl media remove-orphans
echo "==> preview cards.."
./bin/tootctl preview-cards remove --days=7