+ update cache name

This commit is contained in:
garnier-quentin 2016-11-30 17:19:06 +01:00
parent 626f682b57
commit f07815221a
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ sub settings {
sub cache_ap {
my ($self, %options) = @_;
my $has_cache_file = $options{statefile}->read(statefile => 'cache_cisco_prime_' . $self->{hostname} . '_' . $self->{port});
my $has_cache_file = $options{statefile}->read(statefile => 'cache_cisco_prime_accesspoint_' . $self->{hostname} . '_' . $self->{port});
my $timestamp_cache = $options{statefile}->get(name => 'last_timestamp');
my $ap = $options{statefile}->get(name => 'ap');
if ($has_cache_file == 0 || !defined($timestamp_cache) || ((time() - $timestamp_cache) > (($options{reload_cache_time}) * 60))) {