about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-01 20:33:24 +0000
committerEric Wong <e@80x24.org>2015-09-01 20:34:52 +0000
commit36a3b8be4c1dbd8d4c94ac1b3b22165054f9fb14 (patch)
treed5e82c153d5a974510f56b0f6d6de7b8d15ba1c6
parent200995ccc238049fb93ce97455935f0848b5666f (diff)
downloadpublic-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.pm1
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';