Do not suggest using stale DNS cache when disabled by user
This commit is contained in:
@@ -51,7 +51,7 @@ var suggestUsingStaleCacheNotification *notifications.Notification
|
||||
|
||||
func suggestUsingStaleCacheTask(ctx context.Context, t *modules.Task) error {
|
||||
switch {
|
||||
case useStaleCache():
|
||||
case useStaleCache() || useStaleCacheConfigOption.IsSetByUser():
|
||||
// If setting is already active, disable task repeating.
|
||||
t.Repeat(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user