From 025a8e14ab001015c8b4a45e4ce1ab1ebc7840db Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 17 Dec 2020 17:06:48 +0100 Subject: [PATCH] Purge old resources after updating --- updates/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/updates/main.go b/updates/main.go index db1cf204..41abd87a 100644 --- a/updates/main.go +++ b/updates/main.go @@ -307,6 +307,9 @@ func checkForUpdates(ctx context.Context) (err error) { return } + // Purge old resources + registry.Purge(3) + module.TriggerEvent(ResourceUpdateEvent, nil) return nil }