From 064dd101f30b5ad2eff473fe601827c477ae25ae Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sat, 13 May 2023 13:33:03 +0200 Subject: [PATCH] Add more cache cleanup commands --- cleanup.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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}