diff --git a/pro/initialize.go b/pro/initialize.go index 46076ef2..13346a9e 100644 --- a/pro/initialize.go +++ b/pro/initialize.go @@ -30,6 +30,7 @@ func InitPro() { ) logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() { // == License Handling == + ClearLicenseCache() if err := ValidateLicense(); err != nil { slog.Error(err.Error()) return diff --git a/pro/license.go b/pro/license.go index 8ffd2639..de04f902 100644 --- a/pro/license.go +++ b/pro/license.go @@ -38,10 +38,10 @@ func AddLicenseHooks() { Hook: ValidateLicense, Interval: time.Hour, } - logic.HookManagerCh <- models.HookDetails{ - Hook: ClearLicenseCache, - Interval: time.Hour, - } + // logic.HookManagerCh <- models.HookDetails{ + // Hook: ClearLicenseCache, + // Interval: time.Hour, + // } } // ValidateLicense - the initial and periodic license check for netmaker server