diff --git a/app/controllers/notifications/trays_controller.rb b/app/controllers/notifications/trays_controller.rb index 4a7e9ca62..26a1f06e5 100644 --- a/app/controllers/notifications/trays_controller.rb +++ b/app/controllers/notifications/trays_controller.rb @@ -2,6 +2,8 @@ class Notifications::TraysController < ApplicationController def show @notifications = Current.user.notifications.unread.ordered.limit(100) - fresh_when @notifications + # Invalidate on the whole set instead of the unread set since the max updated at in the unread set + # can stay the same when reading old notifications. + fresh_when Current.user.notifications end end