We need to clear Rails cache after updating preferences so that the app picks the new values immediately

This commit is contained in:
Luis Ramos
2020-07-24 13:17:20 +01:00
parent 1b31b727c7
commit 8f4395a6ea

View File

@@ -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