mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
use correct cache key for old preference
This commit is contained in:
@@ -6,7 +6,7 @@ class UpdateWeightCalculators < ActiveRecord::Migration
|
||||
|
||||
Calculator::Weight.all.each { |calculator|
|
||||
calculator.preferred_unit_from_list = 'kg'
|
||||
Rails.cache.delete("/calculator/weight/preferred_per_kg/#{calculator.id}")
|
||||
Rails.cache.delete("/calculator/weight/per_kg/#{calculator.id}")
|
||||
calculator.save
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user