Search code examples
ruby-on-railsrubyspree

Caching configs in Spree ruby gem


When I update spree config via admin panel Spree::Config[some_key] = some_value it overwrites the value in a spree_preferences table, but also store previous versions of value and use all these versions. Rails.cache.clear do not help. But restart a unicorn helped me.

Where are these versions stored? How can I explicitly reset the cached values ​​in the code?


Solution

  • The problem was in the caching of unicorn workers.