Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix cache issue #10381

hoshinotsuyoshi9f02cdbf6994
diff --git a/core/db/migrate/20200102141311_add_social_to_spree_stores.rb b/core/db/migrate/20200102141311_add_social_to_spree_stores.rb
index 6b029119e1..f450d7320c 100644
--- a/core/db/migrate/20200102141311_add_social_to_spree_stores.rb
+++ b/core/db/migrate/20200102141311_add_social_to_spree_stores.rb
@@ -3,5 +3,8 @@ class AddSocialToSpreeStores < ActiveRecord::Migration[6.0]
add_column :spree_stores, :facebook, :string
add_column :spree_stores, :twitter, :string
add_column :spree_stores, :instagram, :string
+
+ # Fix cache issue #10381
+ Rails.cache.delete('default_store')
end
end