Committer: sbelyaev
LJSUP-13312: Delete memcache keys for widget on main pageU 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; }