Invalidate cache when filter changes
https://fizzy.37signals.com/5986089/cards?collection_ids%5B%5D=2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user