From 449a382a405f7440c23af7822ac7acc81d4921c6 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 13 May 2005 15:20:28 +0000 Subject: [PATCH] now using the max persist time in the config file git-svn-id: svn://svn.open-ils.org/ILS/trunk@721 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/src/perlmods/OpenSRF/Utils/Cache.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSRF/src/perlmods/OpenSRF/Utils/Cache.pm b/OpenSRF/src/perlmods/OpenSRF/Utils/Cache.pm index 6b73f1f20d..96b778a147 100644 --- a/OpenSRF/src/perlmods/OpenSRF/Utils/Cache.pm +++ b/OpenSRF/src/perlmods/OpenSRF/Utils/Cache.pm @@ -40,7 +40,7 @@ my $persist_destroy_slot; my $persist_slot_get_expire; my $persist_slot_find; -my $max_persist_time = 86400; +my $max_persist_time; my $persist_add_slot_name = "opensrf.persist.slot.create_expirable"; my $persist_push_stack_name = "opensrf.persist.stack.push"; my $persist_peek_stack_name = "opensrf.persist.stack.peek"; @@ -72,7 +72,7 @@ sub new { my $conf = OpenSRF::Utils::SettingsClient->new; my $servers = $conf->config_value( cache => $cache_type => servers => 'server' ); - my $expire_time = $conf->config_value( cache => $cache_type => 'max_cache_time' ); + $max_persist_time = $conf->config_value( cache => $cache_type => 'max_cache_time' ); if(!ref($servers)){ $servers = [ $servers ]; -- 2.11.0