]> Sergey Matveev's repositories - public-inbox.git/commit
inbox: drop memoization/preload, cleanup expires caches
authorEric Wong <e@80x24.org>
Tue, 28 Sep 2021 23:11:06 +0000 (23:11 +0000)
committerEric Wong <e@80x24.org>
Wed, 29 Sep 2021 00:08:34 +0000 (00:08 +0000)
commitb9e7ecbbd53b97cfb9437a27e548d1df15d871b4
tree058325dc76df1f16f5b3f34c30c1b5f2f42fc656
parent7e5cea05f061e757f36b3eb9abcd285425365224
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.
lib/PublicInbox/Inbox.pm
lib/PublicInbox/WWW.pm
t/nntp.t