force a full refresh of the user's feeds when he logs in

This commit is contained in:
Athou
2013-11-26 06:33:16 +01:00
parent 0f6f717d09
commit c2ed6d47f1
5 changed files with 45 additions and 6 deletions

View File

@@ -95,6 +95,14 @@ public class FeedSubscriptionService {
}
}
public void refreshAll(User user) {
List<FeedSubscription> subs = feedSubscriptionDAO.findAll(user);
for (FeedSubscription sub : subs) {
Feed feed = sub.getFeed();
taskGiver.add(feed, true);
}
}
public UnreadCount getUnreadCount(User user, FeedSubscription sub) {
UnreadCount count = cache.getUnreadCount(sub);
if (count == null) {