From 2525a85fd1ecdd92d525e9667fc04a2afb75aec1 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 11 Apr 2007 06:36:35 +0000 Subject: [PATCH] Use configured lock directory, not hard-coded. git-svn-id: http://svn.simon-cozens.org/memories/trunk@62 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- Memories.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Memories.pm b/Memories.pm index 87a5ac0..1a0b994 100644 --- a/Memories.pm +++ b/Memories.pm @@ -81,7 +81,7 @@ sub additional_data { } $r->{template_args}{now} = Time::Piece->new; if ($r->session) { - (tied %{$r->session})->{lock_manager}->clean('/var/lib/memories/sessionlock', 3600) #remove files older than 1 hour + (tied %{$r->session})->{lock_manager}->clean(Memories->config->{auth}{session_args}{LockDirectory}, 3600) #remove files older than 1 hour } return $r->do_rss if ($r->params->{format} =~ /rss/) } -- 2.39.5