Invalidate cache when filter changes

https://fizzy.37signals.com/5986089/cards?collection_ids%5B%5D=2
This commit is contained in:
Jorge Manrubia
2025-09-12 17:08:30 +02:00
parent 99f86b7f0d
commit 4580ed5e0d
+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