madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22682: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-08-16 14:16:22 UTC (rev 22681)
+++ trunk/cgi-bin/ljprotocol.pl	2012-08-17 09:03:43 UTC (rev 22682)
@@ -2584,7 +2584,13 @@
         LJ::run_hook('spam_community_detector', $uowner, $req, \$need_moderated);
     }
 
+    if ($uowner->is_community) {
+        #reset widget featured_communities
+        my $featured_communities_key  = 'featured_communities:items:' .  $uowner->userid;
+        LJ::MemCache::delete($featured_communities_key);
+    }
 
+
     # if posting to a moderated community, store and bail out here
     if ($uowner->{'journaltype'} eq 'C' && $need_moderated && !$flags->{'nomod'}) {
         # don't moderate admins, moderators & pre-approved users

Tags: livejournal, madeon, pl, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments