summaryrefslogtreecommitdiff
path: root/internal/media/manager.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-03 11:56:18 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-03 10:56:18 +0100
commitd7b46a4b6377296054cb8facd9b2f9db8fea5bce (patch)
tree02d4d2b14235301a11759409881ffee966670780 /internal/media/manager.go
parent[documentation] Corrects the Helm-Chart URL by 0hlov3 (#530) (diff)
downloadgotosocial-d7b46a4b6377296054cb8facd9b2f9db8fea5bce.tar.xz
[chore] Move initial MediaRemotePrune to cmd.server function (#536)
* move initial prune up to the server start function * don't do initial prune when starting media manager * add admin/mediaremoteprune in processor
Diffstat (limited to 'internal/media/manager.go')
-rw-r--r--internal/media/manager.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/media/manager.go b/internal/media/manager.go
index bf1c702c3..e5c7cd30a 100644
--- a/internal/media/manager.go
+++ b/internal/media/manager.go
@@ -175,10 +175,6 @@ func NewManager(database db.DB, storage *kv.KVStore) (Manager, error) {
return nil
}
- // Run an initial cache prune in case max age changed
- logrus.Infof("media manager: running initial remote cache cleanup")
- go pruneFunc()
-
// now start all the cron stuff we've lined up
c.Start()
logrus.Infof("media manager: next scheduled remote cache cleanup is %q", c.Entry(entryID).Next)