]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
purge Email::Address cache
[public-inbox.git] / lib / PublicInbox / Feed.pm
index d535cea93c95e6cb63029a900342c0957ec64fff..6b317ab0573fb298b0882187ddd65accaed823ea 100644 (file)
@@ -43,6 +43,8 @@ sub generate {
                my ($add) = @_;
                add_to_feed($feed_opts, $feed, $add, $git);
        });
+       $git = undef; # destroy pipes
+       Email::Address->purge_cache;
        $feed->as_string;
 }
 
@@ -68,6 +70,7 @@ sub generate_html_index {
                push @messages, $mime;
                1;
        });
+       $git = undef; # destroy pipes.
 
        my $th = Mail::Thread->new(@messages);
        $th->thread;
@@ -85,6 +88,8 @@ sub generate_html_index {
        });
        dump_html_line($_, 0, \$html) for $th->rootset;
 
+       Email::Address->purge_cache;
+
        my $footer = nav_footer($args->{cgi}, $last);
        $footer = "<hr /><pre>$footer</pre>" if $footer;
        $html . "</pre>$footer</html>";