Fixed cloudflare cache not updating properly (#98)
Don't use the key for the cache but use the domain. Co-authored-by: Samuel Bailey <samuel@bingbong.tech>
This commit is contained in:
parent
89c2230ada
commit
45ae9913f9
1 changed files with 3 additions and 3 deletions
6
ddclient
6
ddclient
|
@ -4651,9 +4651,9 @@ sub nic_cloudflare_update {
|
|||
}
|
||||
|
||||
# Cache
|
||||
$config{$key}{'ip'} = $ip;
|
||||
$config{$key}{'mtime'} = $now;
|
||||
$config{$key}{'status'} = 'good';
|
||||
$config{$domain}{'ip'} = $ip;
|
||||
$config{$domain}{'mtime'} = $now;
|
||||
$config{$domain}{'status'} = 'good';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue