diff options
author | Eric Wong <e@80x24.org> | 2020-12-27 11:01:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-28 23:18:49 +0000 |
commit | 54b250c611c752538666f2bf6d361d3762a21781 (patch) | |
tree | 1ba1adc87093e360ce93e410b2682b4c60d034a1 /lib/PublicInbox/WwwListing.pm | |
parent | d209c2064ebc8ccddc7f0da068c663fc08077334 (diff) | |
download | public-inbox-54b250c611c752538666f2bf6d361d3762a21781.tar.gz |
As with ExtSearch, MiscSearch lacks a janky cleanup timer of PublicInbox::Inbox objects, leading to info about inboxes/newsgroups going stale. Fortunately, we don't use MiscSearch very heavily, yet. In the future, we may be able to detect new inboxes without having to SIGHUP or restart daemons using MiscSearch.
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
-rw-r--r-- | lib/PublicInbox/WwwListing.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index fce0e530..4b3f1674 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -69,6 +69,9 @@ sub hide_key { 'www' } sub response { my ($class, $ctx) = @_; bless $ctx, $class; + if (my $ALL = $ctx->{www}->{pi_cfg}->ALL) { + $ALL->misc->reopen; + } my $re = $ctx->url_regexp or return $ctx->psgi_triple; my $iter = PublicInbox::ConfigIter->new($ctx->{www}->{pi_cfg}, \&list_match_i, $re, $ctx); |