Committer: sbelyaev
LJSUP-13301: Main page optimizationU trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl =================================================================== --- trunk/cgi-bin/ljprotocol.pl 2012-08-17 09:20:08 UTC (rev 22683) +++ trunk/cgi-bin/ljprotocol.pl 2012-08-17 09:43:37 UTC (rev 22684) @@ -2584,7 +2584,9 @@ LJ::run_hook('spam_community_detector', $uowner, $req, \$need_moderated); } - if ($uowner->is_community) { + if ( $uowner->is_community && + $uowner->user eq $LJ::WIDGET_FEATURED_COMMUNITY_NAME ) { + #reset widget featured_communities my $featured_communities_key = 'featured_communities:items:' . $uowner->userid; LJ::MemCache::delete($featured_communities_key);