diff --git a/apps/varnish/local/mode/cache.pm b/apps/varnish/local/mode/cache.pm index 8c06de712..9582f4c06 100644 --- a/apps/varnish/local/mode/cache.pm +++ b/apps/varnish/local/mode/cache.pm @@ -106,7 +106,7 @@ sub manage_selection { $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}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : 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 !~ /cache/); diff --git a/apps/varnish/local/mode/shm.pm b/apps/varnish/local/mode/shm.pm index abbc2b315..28e510120 100644 --- a/apps/varnish/local/mode/shm.pm +++ b/apps/varnish/local/mode/shm.pm @@ -129,7 +129,7 @@ sub manage_selection { $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}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : 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 !~ /shm/);