Skip to content

Commit

Permalink
Include ENV['RAILS_CACHE_ID'] within preference cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jun 6, 2013
1 parent e13b3e4 commit 236153d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/app/models/spree/preferences/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def configure
end

def preference_cache_key(name)
[self.class.name, name].join('::').underscore
[ENV['RAILS_CACHE_ID'], self.class.name, name].flatten.join('::').underscore
end

def reset
Expand Down
2 changes: 1 addition & 1 deletion core/app/models/spree/preferences/preferable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def prefers?(name)

def preference_cache_key(name)
return unless id
[self.class.name, name, id].join('::').underscore
[ENV["RAILS_CACHE_ID"], self.class.name, name, id].join('::').underscore
end

def save_pending_preferences
Expand Down

0 comments on commit 236153d

Please sign in to comment.