From e94f06201ac7e677ea89610f6eb6bdcc0e733eff Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 2 Jan 2011 12:08:54 -0800 Subject: [PATCH] Force cache rebuild when renaming --- bind8/bind8-lib.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 3ccfadc82..b87024dab 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -1750,7 +1750,8 @@ return 1; # delete_zone(name, [view], [file-too]) # Delete one zone from named.conf -# Returns 0 on success, 1 if the zone was not found, or 2 if the view was not found. +# Returns 0 on success, 1 if the zone was not found, or 2 if the view was not +# found. sub delete_zone { local $parent = &get_config_parent(); @@ -1843,6 +1844,7 @@ if ($file) { } &save_directive($parent, [ $z ], [ $z ]); +&unlink_file($zone_names_cache); &flush_file_lines(); return 0; }