madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-08-15 13:40:12 UTC (rev 22657)
+++ trunk/cgi-bin/LJ/User.pm	2012-08-15 13:46:35 UTC (rev 22658)
@@ -9046,6 +9046,10 @@
     my @add_ids = ref $to_add eq 'ARRAY' ? map { LJ::want_userid($_) } @$to_add : ( LJ::want_userid($to_add) );
     return 0 unless @add_ids;
 
+    # clean widget cache
+    my $widget_key = "friend_birthdays:" . $userid;
+    LJ::MemCache::delete($widget_key);
+
     my $friender = LJ::load_userid($userid);
 
     # check action rate

Tags: livejournal, madeon, pm, 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