From a9939ac47a3c711c05b42a01bce63b79d840f9d5 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sat, 18 Oct 2025 13:35:32 +0200 Subject: [PATCH 1/2] Invalidate cards when columns are added/removed --- app/models/card/cacheable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/card/cacheable.rb b/app/models/card/cacheable.rb index a3047c88d..44b92a686 100644 --- a/app/models/card/cacheable.rb +++ b/app/models/card/cacheable.rb @@ -17,11 +17,11 @@ module Card::Cacheable end def for_perma(*other) - [ card, User.all, Tag.all, *other ] + [ card, User.all, Tag.all, Column.all, *other ] end def for_preview(*other) - [ card, card.collection.entropy_configuration, card.collection.publication, card.column&.color, *other ] + [ card, card.collection.entropy_configuration, card.collection.publication, card.column&.color, Column.all, *other ] end end end From 61b397071ab6510c55d161fb63e9204a29a47349 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sat, 18 Oct 2025 13:37:11 +0200 Subject: [PATCH 2/2] Not listing columns on previews --- app/models/card/cacheable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/card/cacheable.rb b/app/models/card/cacheable.rb index 44b92a686..df18e3671 100644 --- a/app/models/card/cacheable.rb +++ b/app/models/card/cacheable.rb @@ -21,7 +21,7 @@ module Card::Cacheable end def for_preview(*other) - [ card, card.collection.entropy_configuration, card.collection.publication, card.column&.color, Column.all, *other ] + [ card, card.collection.entropy_configuration, card.collection.publication, card.column&.color, *other ] end end end