3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Users: clear user cache when rebuilding index

This commit is contained in:
Pragmatic Software 2020-04-28 16:18:53 -07:00
parent 7f700cc115
commit 90de77e523

View File

@ -161,6 +161,7 @@ sub rebuild_user_index {
my ($self) = @_; my ($self) = @_;
$self->{user_index} = {}; $self->{user_index} = {};
$self->{user_cache} = {};
foreach my $name ($self->{users}->get_keys) { foreach my $name ($self->{users}->get_keys) {
my $channels = $self->{users}->get_data($name, 'channels'); my $channels = $self->{users}->get_data($name, 'channels');