about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-10 08:35:47 +0000
committerEric Wong <e@80x24.org>2020-12-10 19:30:17 +0000
commitaaf5e53c44a2123f80133e1722cc864f17010808 (patch)
treeed96a92fc5c455c4640d7b9410db9f0fc1c41914 /lib
parent02b2fcc46f364b51ca8434316c10eff41593b15e (diff)
downloadpublic-inbox-aaf5e53c44a2123f80133e1722cc864f17010808.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/ManifestJsGz.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/ManifestJsGz.pm b/lib/PublicInbox/ManifestJsGz.pm
index fb7a45e7..6d5b57ee 100644
--- a/lib/PublicInbox/ManifestJsGz.pm
+++ b/lib/PublicInbox/ManifestJsGz.pm
@@ -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);
                 }