mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 06:04:20 +08:00
disable clear cache hook
This commit is contained in:
parent
8a0f96fe9c
commit
5fd0f3c965
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue