From 45ae9913f98d7c32d9397bd577b49f6efc636e71 Mon Sep 17 00:00:00 2001 From: samwell61 <32226560+samwell61@users.noreply.github.com> Date: Mon, 6 Apr 2020 19:44:33 +0100 Subject: [PATCH] Fixed cloudflare cache not updating properly (#98) Don't use the key for the cache but use the domain. Co-authored-by: Samuel Bailey --- ddclient | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddclient b/ddclient index 8a1bacc..260887c 100755 --- a/ddclient +++ b/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'; } } }