diff options
author | Eric Wong <e@80x24.org> | 2021-06-24 12:59:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-06-24 12:59:44 +0000 |
commit | 5860b498af67dc0944c39667e3899485b5650387 (patch) | |
tree | 2fea5e293365a0479d819d02faf397a767f226e8 /lib/PublicInbox/WwwListing.pm | |
parent | 0e9480bb9b597432579feab9afdb732c71601404 (diff) | |
download | public-inbox-5860b498af67dc0944c39667e3899485b5650387.tar.gz |
WwwListing and ManifestJsGz may be too different nowadays to be worth the code sharing between them. Update some comments and note we still needs better tests :x Fixes: 520be116e8a686cb ("www_listing: start updating for pagination + search")
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
-rw-r--r-- | lib/PublicInbox/WwwListing.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index eb015742..76c76663 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -90,7 +90,7 @@ sub add_misc_ibx { # MiscSearch->retry_reopen callback $qs = "( $qs ) AND ( $user_query )"; } my $mset = $misc->mset($qs, $opt); # sorts by $MODIFIED (mtime) - $ctx->{-list} = []; + delete $ctx->{-list}; # reset if retried my $pi_cfg = $ctx->{www}->{pi_cfg}; for my $mi ($mset->items) { my $doc = $mi->get_document; @@ -122,6 +122,7 @@ sub response { my ($re, $qs) = $ctx->url_filter; $re // return $ctx->psgi_triple; if (my $ALL = $ctx->{www}->{pi_cfg}->ALL) { # fast path + # FIXME: test this in t/ $ALL->misc->reopen->retry_reopen(\&add_misc_ibx, $ctx, $re, $qs); } else { # slow path, no [extindex "all"] configured |