Commit f64b9db6f19bfeca7e0ef2663084f1274eed1c8e
1 parent
a1ec4e43
Exists in
master
and in
22 other branches
rails3: added dalli gem as memcached client
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
Gemfile
| ... | ... | @@ -12,6 +12,10 @@ gem 'pg' |
| 12 | 12 | # FIXME list here all actual dependencies (i.e. the ones in debian/control), |
| 13 | 13 | # with their GEM names (not the Debian package names) |
| 14 | 14 | |
| 15 | +group :production do | |
| 16 | + gem 'dalli' | |
| 17 | +end | |
| 18 | + | |
| 15 | 19 | group :test do |
| 16 | 20 | gem 'rspec' |
| 17 | 21 | gem 'rspec-rails' | ... | ... |
Gemfile.lock
| ... | ... | @@ -56,6 +56,7 @@ GEM |
| 56 | 56 | cucumber (>= 1.2.0) |
| 57 | 57 | nokogiri (>= 1.5.0) |
| 58 | 58 | rails (>= 3.0.0) |
| 59 | + dalli (2.7.0) | |
| 59 | 60 | database_cleaner (1.2.0) |
| 60 | 61 | diff-lcs (1.2.5) |
| 61 | 62 | erubis (2.7.0) |
| ... | ... | @@ -150,6 +151,7 @@ DEPENDENCIES |
| 150 | 151 | capybara |
| 151 | 152 | cucumber |
| 152 | 153 | cucumber-rails |
| 154 | + dalli | |
| 153 | 155 | database_cleaner |
| 154 | 156 | fast_gettext |
| 155 | 157 | pg | ... | ... |
config/environments/production.rb
| ... | ... | @@ -41,7 +41,7 @@ Noosfero::Application.configure do |
| 41 | 41 | # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) |
| 42 | 42 | |
| 43 | 43 | # Use a different cache store in production |
| 44 | - config.cache_store = :mem_cache_store, "localhost" | |
| 44 | + config.cache_store = :dalli_store, "localhost" | |
| 45 | 45 | |
| 46 | 46 | # Enable serving of images, stylesheets, and javascripts from an asset server |
| 47 | 47 | # config.action_controller.asset_host = "http://assets.example.com" | ... | ... |