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:
samwell61 2020-04-06 19:44:33 +01:00 committed by GitHub
parent 89c2230ada
commit 45ae9913f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
}
}
}