Committer: sbelyaev
LJSUP-13301: Main page optimizationU trunk/cgi-bin/LJ/Comment.pm
Modified: trunk/cgi-bin/LJ/Comment.pm =================================================================== --- trunk/cgi-bin/LJ/Comment.pm 2012-08-20 09:06:07 UTC (rev 22696) +++ trunk/cgi-bin/LJ/Comment.pm 2012-08-20 09:22:41 UTC (rev 22697) @@ -384,7 +384,10 @@ # returns LJ::User object for the poster of this entry, or undef for anonymous sub poster { - LJ::load_userid($_[0]->posterid); + return $_[0]->{'poster_obj'} if exists $_[0]->{'poster_obj'}; + my $poster = LJ::load_userid($_[0]->posterid); + $_[0]->{'poster_obj'} = $poster; + return $poster; } sub posterid {