* [PATCH] view: purge email address cache after rendering thread
@ 2015-09-01 20:33 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-09-01 20:33 UTC (permalink / raw)
To: meta
We cannot allow memory in the cache to grow at an unbounded
rate in between HTTP requests.
---
lib/PublicInbox/View.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 116f36e..6aa199e 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -157,6 +157,7 @@ sub emit_thread_html {
my $git = PublicInbox::GitCatFile->new($ctx->{git_dir});
thread_entry($fh, $git, $state, $_, 0) for $th->rootset;
}
+ Email::Address->purge_cache;
my $final_anchor = $state->{anchor_idx};
my $next = "<a\nid=\"s$final_anchor\">";
$next .= $final_anchor == 1 ? 'only message in' : 'end of';
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-01 20:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 20:33 [PATCH] view: purge email address cache after rendering thread Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).