diff --git a/cleanup.sh b/cleanup.sh index 5c06908..10a0bc8 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -28,3 +28,9 @@ echo "==> prune profiles ..." echo "==> remove headers ..." ./bin/tootctl media remove --remove-headers --days=${CACHE_RETENTION_DAYS} + +echo "==> clear cache ..." +/app/code/bin/tootctl cache clear + +echo "==> remove unreferenced statuses ..." +/app/code/bin/tootctl statuses remove --days=${CACHE_RETENTION_DAYS}