diff --git a/app/models/access.rb b/app/models/access.rb index 97748a4ee..fe4efe590 100644 --- a/app/models/access.rb +++ b/app/models/access.rb @@ -1,5 +1,5 @@ class Access < ApplicationRecord - belongs_to :collection + belongs_to :collection, touch: true belongs_to :user, touch: true enum :involvement, %i[ access_only watching ].index_by(&:itself), default: :access_only diff --git a/app/views/collections/show/_stream.html.erb b/app/views/collections/show/_stream.html.erb index b48c90bb7..f107d0cda 100644 --- a/app/views/collections/show/_stream.html.erb +++ b/app/views/collections/show/_stream.html.erb @@ -1,4 +1,4 @@ -<% cache [ page.records ] do %> +<% cache [ collection, page.records ] do %>