]> Sergey Matveev's repositories - public-inbox.git/commitdiff
manifest: account for future cache in MiscIdx docdata
authorEric Wong <e@80x24.org>
Thu, 10 Dec 2020 08:35:47 +0000 (08:35 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Dec 2020 19:30:17 +0000 (19:30 +0000)
We'll be storing private data inside the "" (empty string) key
of the JSON doc we use for store for manifest.js.gz generation.
This private data will allow us to reduce FS activity at and
speed up startup times, but some will also be in Xapian boolean
terms and values for searching and filtering.

lib/PublicInbox/ManifestJsGz.pm

index fb7a45e733d084d6e47eeec056ffca6068c43f03..6d5b57eebc2e5c31db1496e982b41097f8e415fa 100644 (file)
@@ -61,6 +61,7 @@ sub eidx_manifest_add ($$$) {
        my ($ctx, $ALL, $ibx) = @_;
        if (my $data = $ALL->misc->inbox_data($ibx)) {
                $data = $json->decode($data);
+               delete $data->{''}; # private
                while (my ($url_path, $ent) = each %$data) {
                        inject_entry($ctx, $url_path, $ent);
                }