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:
parent
25fec312b0
commit
d79a7d083c
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue