Cleanup participant table after 10 min instead of 2 hours

master
Daniel Berteaud 10 years ago
parent 9f8908657c
commit 819ac83f63
  1. 2
      public/vroom.pl

@ -367,7 +367,7 @@ helper delete_participants => sub {
my $self = shift; my $self = shift;
$self->app->log->debug('Removing inactive participants from the database'); $self->app->log->debug('Removing inactive participants from the database');
my $sth = eval { my $sth = eval {
$self->db->prepare("DELETE FROM `participants` WHERE (`activity_timestamp` < 7200 OR `activity_timestamp` IS NULL);") $self->db->prepare("DELETE FROM `participants` WHERE (`activity_timestamp` < 600 OR `activity_timestamp` IS NULL);")
} || return undef; } || return undef;
$sth->execute() || return undef; $sth->execute() || return undef;
return 1; return 1;

Loading…
Cancel
Save