Skip to content

Commit

Permalink
Increase the minimum default expiration time
Browse files Browse the repository at this point in the history
After discussion it appears 5 seconds is to low when testing this
feature.
  • Loading branch information
Alexandre Pion committed Nov 28, 2023
1 parent 08f88cd commit ae6934b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Zonemaster/Engine/Nameserver/Cache/RedisCache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ my $redis;
my $config;
our $object_cache = \%Zonemaster::Engine::Nameserver::Cache::object_cache;

my $REDIS_EXPIRE_DEFAULT = 5; # seconds
my $REDIS_EXPIRE_DEFAULT = 300; # seconds

has 'redis' => ( is => 'ro' );
has 'config' => ( is => 'ro' );
Expand Down
2 changes: 1 addition & 1 deletion share/profile_additional_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"cache": {
"redis": {
"server": "127.0.0.1:6379",
"expire": 5
"expire": 300
}
},
"logfilter" : {
Expand Down

0 comments on commit ae6934b

Please sign in to comment.