Fixing session gc limiting.

This commit is contained in:
Chris 2012-04-12 12:00:50 +01:00
parent 94bfe29911
commit 227bdc01a9

View File

@ -586,7 +586,7 @@ sub session_cleanup {
my $timelimit = $now - $self -> {"auth"} -> get_config("session_length");
# We only want to run the garbage collect occasionally
if($self -> {"settings"} -> {"config"} -> {"Session:lastgc"} < $now - $self -> {"auth"} -> get_config("Session:lastgc")) {
if($self -> {"settings"} -> {"config"} -> {"Session:lastgc"} < $now - $self -> {"auth"} -> get_config("session_gc")) {
# Okay, we're due a garbage collect, update the config to reflect that we're doing it
$self -> {"settings"} -> set_db_config("Session:lastgc", $now);