Fix sessions_on_same_device cache

This hasn't been working for at least 10 years. We treated the contents
of the cache as a list of ids, but it was really a list of records. Now
we just store the ids, since we don't need the rest of the info.
This commit is contained in:
hjp 2020-07-18 08:52:00 +00:00
parent 25fec312b0
commit d79a7d083c
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ sub linkdup {
my $dev = defined $st ? $st->dev : "";;
next unless $dev eq $my_dev;
last if $self->{sessions_on_same_device} && @{ $self->{sessions_on_same_device} } > 30;
push @{ $self->{sessions_on_same_device} }, $r;
push @{ $self->{sessions_on_same_device} }, $r->{id}; # We only use the id
}
}