From 7eb99c308c04efcb0537cf836076ac8ae86aafc6 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Fri, 3 Oct 2025 16:56:39 +0200 Subject: [PATCH] Fix: watchers list not updating due to caching https://fizzy.37signals.com/5986089/cards/2157/edit --- app/models/access.rb | 2 +- app/views/collections/show/_stream.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %>