From b9e7ecbbd53b97cfb9437a27e548d1df15d871b4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Sep 2021 23:11:06 +0000 Subject: inbox: drop memoization/preload, cleanup expires caches 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. --- t/nntp.t | 1 - 1 file changed, 1 deletion(-) (limited to 't') 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>" ], -- cgit v1.2.3-24-ge0c7