diff options
author | Yorhel <git@yorhel.nl> | 2011-12-29 15:07:59 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-12-29 15:07:59 +0100 |
commit | 019f1424945aff4545c3a5083fb6330a942f4a3b (patch) | |
tree | d2b026da981a461cab0c8882ccb08b94f8cd1b3e /lib | |
parent | 3f754d1566b60815984d3df5f0f19b5c9c9e7e09 (diff) |
Maintain VN search cache for hidden entries as well
Required in order to search for hidden entries (obviously :P)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Multi/Maintenance.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm index a754e618..e7c66a04 100644 --- a/lib/Multi/Maintenance.pm +++ b/lib/Multi/Maintenance.pm @@ -272,7 +272,7 @@ sub logrotate { sub vnsearch_check { $_[KERNEL]->call(pg => query => - 'SELECT id FROM vn WHERE NOT hidden AND c_search IS NULL LIMIT 1', + 'SELECT id FROM vn WHERE c_search IS NULL LIMIT 1', undef, 'vnsearch_gettitles'); } @@ -303,7 +303,7 @@ sub vnsearch_update { # num, res, vid, time my @t = map +($_->{title}, $_->{original}), @$res; # alias fields are a bit special for (@$res) { - push @t, split /,/, $_->{alias} if $_->{alias}; + push @t, split /[\n,]/, $_->{alias} if $_->{alias}; } my $t = normalize_titles(@t); $_[KERNEL]->call(core => log => 'Updated search cache for v%d', $id); |