diff --git a/centreon-plugins/storage/netapp/santricity/restapi/mode/storagecontrollers.pm b/centreon-plugins/storage/netapp/santricity/restapi/mode/storagecontrollers.pm index 6fc59d935..d7b4c6f2c 100644 --- a/centreon-plugins/storage/netapp/santricity/restapi/mode/storagecontrollers.pm +++ b/centreon-plugins/storage/netapp/santricity/restapi/mode/storagecontrollers.pm @@ -190,7 +190,7 @@ sub manage_selection { } } - $self->{cache_name} = 'netapp_santricity' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . + $self->{cache_name} = 'netapp_santricity_' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_storage_name}) ? md5_hex($self->{option_results}->{filter_storage_name}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_controller_name}) ? md5_hex($self->{option_results}->{filter_controller_name}) : md5_hex('all')); diff --git a/centreon-plugins/storage/netapp/santricity/restapi/mode/storagevolumes.pm b/centreon-plugins/storage/netapp/santricity/restapi/mode/storagevolumes.pm index 2d61a8082..09fb80de1 100644 --- a/centreon-plugins/storage/netapp/santricity/restapi/mode/storagevolumes.pm +++ b/centreon-plugins/storage/netapp/santricity/restapi/mode/storagevolumes.pm @@ -177,7 +177,7 @@ sub manage_selection { } } - $self->{cache_name} = 'netapp_santricity' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . + $self->{cache_name} = 'netapp_santricity_' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_storage_name}) ? md5_hex($self->{option_results}->{filter_storage_name}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_volume_name}) ? md5_hex($self->{option_results}->{filter_volume_name}) : md5_hex('all'));