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 Apr 10, 2017
1 parent 971c984 commit d1e9709
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
14 changes: 8 additions & 6 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@
# 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}/",
c_threshold: 10_000,
compression: true,
debug: Rails.env.development?,
readonly: false,
urlencode: false }
config.cache_store = :mem_cache_store, 'app-database', { :namespace => "wheelmap/#{Rails.env}/",
:c_threshold => 10_000,
:compression => true,
:debug => Rails.env.development?,
:readonly => false,
:urlencode => false
}


# Disable Rails's static asset server
# In production, Apache or nginx will already do this
Expand Down
13 changes: 7 additions & 6 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
# 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}/",
c_threshold: 10_000,
compression: true,
debug: Rails.env.staging?,
readonly: false,
urlencode: false }
config.cache_store = :mem_cache_store, 'app-database', { :namespace => "wheelmap/#{Rails.env}/",
:c_threshold => 10_000,
:compression => true,
:debug => Rails.env.staging?,
:readonly => false,
:urlencode => false
}

# Disable Rails's static asset server
# In production, Apache or nginx will already do this
Expand Down

0 comments on commit d1e9709

Please sign in to comment.