From: Simon Cozens Date: Wed, 11 Apr 2007 06:36:35 +0000 (+0000) Subject: Use configured lock directory, not hard-coded. X-Git-Tag: 1.2+svn20070808~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2525a85fd1ecdd92d525e9667fc04a2afb75aec1;p=memories.git Use configured lock directory, not hard-coded. git-svn-id: http://svn.simon-cozens.org/memories/trunk@62 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- 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/) }