disable clear cache hook

This commit is contained in:
Abhishek Kondur 2023-11-23 08:53:41 +04:00
parent 8a0f96fe9c
commit 5fd0f3c965
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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