set/abstract/machine_input.rb in card-mod-machines-0.11.4 vs set/abstract/machine_input.rb in card-mod-machines-0.11.5
- old
+ new
@@ -65,8 +65,9 @@
def expire_machine_cache
Card.search(right_plus: [{ codename: "machine_input" }, { link_to: name }],
return: :name).each do |machine_name|
cache_card = Card.fetch(name, machine_name, :machine_cache)
next unless cache_card&.content?
+
Auth.as_bot { cache_card.update! trash: true }
end
end