Skip to content

Commit

Permalink
Use memcached on new infra
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hobden committed Jan 13, 2017
1 parent 2e0f7f6 commit a6ef178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# Use a different cache store in production
# default is:
# config.cache_store = :file_store, "tmp/cache/"
config.cache_store = :mem_cache_store, 'localhost', { :namespace => "wheelmap/#{Rails.env}/",
config.cache_store = :mem_cache_store, 'app-database', { :namespace => "wheelmap/#{Rails.env}/",
:c_threshold => 10_000,
:compression => true,
:debug => Rails.env.development?,
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# Use a different cache store in staging
# default is:
# config.cache_store = :file_store, "tmp/cache/"
config.cache_store = :mem_cache_store, 'localhost', { :namespace => "wheelmap/#{Rails.env}/",
config.cache_store = :mem_cache_store, 'app-database', { :namespace => "wheelmap/#{Rails.env}/",
:c_threshold => 10_000,
:compression => true,
:debug => Rails.env.staging?,
Expand Down

0 comments on commit a6ef178

Please sign in to comment.