Merge pull request #1095 from basecamp/fix-caching-issue-2

Invalidate cache when filter changes
This commit is contained in:
Jorge Manrubia
2025-09-12 17:15:21 +02:00
committed by GitHub
+1 -1
View File
@@ -17,7 +17,7 @@ class CardsController < ApplicationController
@closed = page_and_filter_for_closed_cards
@cache_key = [ @considering, @on_deck, @doing, @closed ].collect { it.page.records }.including([ Workflow.all ])
fresh_when etag: @cache_key
fresh_when etag: [ @cache_key, @user_filtering ]
end
def create