mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
We need to clear Rails cache after updating preferences so that the app picks the new values immediately
This commit is contained in:
@@ -19,5 +19,7 @@ class MoveCalculatorsPreferencesOutsideSpreeNamespace < ActiveRecord::Migration
|
||||
AND NOT EXISTS (SELECT 1 FROM spree_preferences existing_pref
|
||||
WHERE existing_pref.key = " + updated_pref_key + ")"
|
||||
)
|
||||
|
||||
Rails.cache.clear
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user