From b625ad45301f7e544d92b923f16bd2a240899aae Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 18 Sep 2025 11:02:49 +0200 Subject: [PATCH] Invalidate previews when workflows themselves are changed --- 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 2456b15b2..b6c381ceb 100644 --- a/app/models/card/cacheable.rb +++ b/app/models/card/cacheable.rb @@ -17,7 +17,7 @@ module Card::Cacheable end def for_preview(*other) - [ card, card.workflow, card.collection.entropy_configuration, card.collection.publication, *other ] + [ card, card.workflow, Workflow.all, card.collection.entropy_configuration, card.collection.publication, *other ] end end end