diff options
-rw-r--r-- | app/models/form/status_batch.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/form/status_batch.rb b/app/models/form/status_batch.rb index ceae06023..9d1d289de 100644 --- a/app/models/form/status_batch.rb +++ b/app/models/form/status_batch.rb @@ -22,6 +22,7 @@ class Form::StatusBatch Status.where(id: status_ids).reorder(nil).find_each do |status| status.update!(sensitive: sensitive) log_action :update, status + Rails.cache.delete("statuses/#{status.id}") end end |