mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Flush the cache
So all preferences are fetch from DB now that they have changed.
This commit is contained in:
@@ -7,6 +7,8 @@ class FixPreferencesKeys < ActiveRecord::Migration
|
||||
new_preferences.delete_all
|
||||
|
||||
Spree::Preference.update_all("key = '/' || key")
|
||||
|
||||
Rails.cache.clear
|
||||
end
|
||||
|
||||
def down
|
||||
|
||||
Reference in New Issue
Block a user