From 0ba6c6d3bab62069b56882d288214a045282e577 Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Tue, 3 Mar 2015 16:03:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9Fmemcached=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6[memcache=E5=AE=9E=E9=AA=8C=E8=BF=98?= =?UTF-8?q?=E6=B2=A1=E5=BC=84=E5=A5=BD]=20Signed-off-by:=20alan=20<5475334?= =?UTF-8?q?34@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/environments/development.rb | 6 ++---- config/environments/production.rb | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 80d1c9db8..3b894d207 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -8,12 +8,10 @@ RedmineApp::Application.configure do # Log error messages when you accidentally call methods on nil. config.whiny_nils = true config.logger = Logger.new('log/development.log', 'daily') # daily, weekly or monthly - - # Show full error reports and disable caching config.consider_all_requests_local = true - config.action_controller.perform_caching = true - config.cache_store = :dalli_store + config.action_controller.perform_caching = false + config.cache_store = :file_store, "#{Rails.root }/public/tmp/" # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = true diff --git a/config/environments/production.rb b/config/environments/production.rb index 0b61ed132..48b2514cf 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -3,7 +3,7 @@ RedmineApp::Application.configure do # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true - config.cache_store = :dalli_store + ##### # Customize the default logger (http://ruby-doc.org/core/classes/Logger.html) #