diff --git a/apps/varnish/local/mode/backend.pm b/apps/varnish/local/mode/backend.pm index c0d2a83b2..5b34647a4 100644 --- a/apps/varnish/local/mode/backend.pm +++ b/apps/varnish/local/mode/backend.pm @@ -165,7 +165,8 @@ sub manage_selection { my $json_data = decode_json($stdout); $self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' . - (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')); + (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' . + (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')); foreach my $counter (keys %{$json_data}) { next if ($counter !~ /backend/); diff --git a/apps/varnish/local/mode/cache.pm b/apps/varnish/local/mode/cache.pm index 7a527d258..8c06de712 100644 --- a/apps/varnish/local/mode/cache.pm +++ b/apps/varnish/local/mode/cache.pm @@ -105,7 +105,8 @@ sub manage_selection { my $json_data = decode_json($stdout); $self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' . - (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')); + (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' . + (defined($self->{option_results}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : md5_hex('all')); foreach my $counter (keys %{$json_data}) { next if ($counter !~ /cache/); diff --git a/apps/varnish/local/mode/shm.pm b/apps/varnish/local/mode/shm.pm index d8948e86f..abbc2b315 100644 --- a/apps/varnish/local/mode/shm.pm +++ b/apps/varnish/local/mode/shm.pm @@ -128,7 +128,8 @@ sub manage_selection { my $json_data = decode_json($stdout); $self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' . - (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')); + (defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' . + (defined($self->{option_results}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : md5_hex('all')); foreach my $counter (keys %{$json_data}) { next if ($counter !~ /shm/);