about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-28 23:11:06 +0000
committerEric Wong <e@80x24.org>2021-09-29 00:08:34 +0000
commitb9e7ecbbd53b97cfb9437a27e548d1df15d871b4 (patch)
tree058325dc76df1f16f5b3f34c30c1b5f2f42fc656 /t
parent7e5cea05f061e757f36b3eb9abcd285425365224 (diff)
downloadpublic-inbox-b9e7ecbbd53b97cfb9437a27e548d1df15d871b4.tar.gz
cloneurl, description, and base_url are no longer memoized.  The
non-$env form of base_url is rare in WWW, and is fast enough to
not require memoization.

cloneurl and description are now expired during cleanup,
allowing admins to change these files without restarting
(or SIGHUP).

-altid_map is no longer cached nor memoized at all, since the
endpoint(s) which hit it seem rarely accessed.

nntp_url and imap_url are now cached (instead of memoized) in
case an inbox is unvisited for a long time.  They remain cached
since the truthiness check gets called in every per-inbox HTML
page, which can potentially be expensive.
Diffstat (limited to 't')
-rw-r--r--t/nntp.t1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/nntp.t b/t/nntp.t
index 5bad9dfe..655af398 100644
--- a/t/nntp.t
+++ b/t/nntp.t
@@ -126,7 +126,6 @@ use PublicInbox::Config;
         is_deeply([ $mime->header('Xref') ], [ 'example.com test:1' ],
                 'Xref: set');
 
-        $ibx->{-base_url} = 'http://mirror.example.com/m/';
         $smsg->{num} = 2;
         PublicInbox::NNTP::set_nntp_headers($hdr, $smsg);
         is_deeply([ $mime->header('Message-ID') ], [ "<$mid>" ],