Force cache rebuild when renaming

This commit is contained in:
Jamie Cameron
2011-01-02 12:08:54 -08:00
parent fa6fa7fb9e
commit e94f06201a

View File

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