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