Committer: ailyin
LJSUP-13276 (Private messages statistic (frequency distribution))U trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm =================================================================== --- trunk/cgi-bin/LJ/User.pm 2012-08-28 08:01:45 UTC (rev 22748) +++ trunk/cgi-bin/LJ/User.pm 2012-08-28 08:30:01 UTC (rev 22749) @@ -2863,6 +2863,10 @@ sub get_social_capital { my ($u) = @_; + if ( $LJ::IS_DEV_SERVER && ( my $getter = $LJ::FAKE_SOCIAL_CAPITAL ) ) { + return $getter->($u); + } + my $soc_capital = LJ::MemCache::get( $u->user."_soc_cap" ); if (defined $soc_capital) { return $soc_capital;