Add http caching to notifications
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class Notifications::TraysController < ApplicationController
|
||||
def show
|
||||
@notifications = Current.user.notifications.unread.ordered.limit(100)
|
||||
|
||||
fresh_when @notifications
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user