diff options
author | Eric Wong <e@80x24.org> | 2015-09-01 20:33:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-01 20:34:52 +0000 |
commit | 36a3b8be4c1dbd8d4c94ac1b3b22165054f9fb14 (patch) | |
tree | d5e82c153d5a974510f56b0f6d6de7b8d15ba1c6 | |
parent | 200995ccc238049fb93ce97455935f0848b5666f (diff) | |
download | public-inbox-36a3b8be4c1dbd8d4c94ac1b3b22165054f9fb14.tar.gz |
We cannot allow memory in the cache to grow at an unbounded rate in between HTTP requests.
-rw-r--r-- | lib/PublicInbox/View.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 116f36e7..6aa199e6 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'; |