mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 10:12:26 -05:00
[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
This commit is contained in:
parent
141107bdc1
commit
d7b46a4b63
6 changed files with 57 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue