Merge pull request #217 from safing/feature/purge-old-resources

Purge old resources after updating
This commit is contained in:
Patrick Pacher
2020-12-18 15:54:59 +01:00
committed by GitHub

View File

@@ -307,6 +307,9 @@ func checkForUpdates(ctx context.Context) (err error) {
return
}
// Purge old resources
registry.Purge(3)
module.TriggerEvent(ResourceUpdateEvent, nil)
return nil
}