From c2940da572c7dd586a0b6c97b5f59057f8e62e67 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Tue, 23 May 2017 18:00:50 +0200 Subject: [PATCH] add (for real) hash on filter_counter for cache_name --- apps/varnish/local/mode/cache.pm | 2 +- apps/varnish/local/mode/shm.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/);