madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22652: LJSUP-13312: Delete memcache keys for wi...

Committer: sbelyaev
LJSUP-13312: Delete memcache keys for widget on main page
U   trunk/cgi-bin/LJ/NotificationMethod/Inbox.pm
Modified: trunk/cgi-bin/LJ/NotificationMethod/Inbox.pm
===================================================================
--- trunk/cgi-bin/LJ/NotificationMethod/Inbox.pm	2012-08-15 09:11:42 UTC (rev 22651)
+++ trunk/cgi-bin/LJ/NotificationMethod/Inbox.pm	2012-08-15 11:21:36 UTC (rev 22652)
@@ -77,6 +77,13 @@
         $q->enqueue(event => $ev);
     }
 
+    # widget reset
+    my $cache_friends_update_key  = "friend_updates:" . $u->userid;
+    LJ::MemCache::delete($cache_friends_update_key);
+
+    my $cache_update_for_user     = "update_for_users:" . $u->userid;
+    LJ::MemCache::delete($cache_update_for_user);
+
     return 1;
 }
 

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