You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-commits@incubator.apache.org by ws...@apache.org on 2009/03/15 17:19:14 UTC

svn commit: r754695 - in /incubator/olio/webapp/rails/branches/caching/config: environment.rb environments/production.rb

Author: wsobel
Date: Sun Mar 15 17:19:13 2009
New Revision: 754695

URL: http://svn.apache.org/viewvc?rev=754695&view=rev
Log:
Fix for OLIO-59: Simplified configuration

Modified:
    incubator/olio/webapp/rails/branches/caching/config/environment.rb
    incubator/olio/webapp/rails/branches/caching/config/environments/production.rb

Modified: incubator/olio/webapp/rails/branches/caching/config/environment.rb
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/rails/branches/caching/config/environment.rb?rev=754695&r1=754694&r2=754695&view=diff
==============================================================================
--- incubator/olio/webapp/rails/branches/caching/config/environment.rb (original)
+++ incubator/olio/webapp/rails/branches/caching/config/environment.rb Sun Mar 15 17:19:13 2009
@@ -13,6 +13,7 @@
 
 CACHED = true
 MEMCACHED = true
+CACHE_SERVER = 'localhost'
 
 IMAGE_STORE_PATH = 'public/uploaded_files'
 DOCUMENT_STORE_PATH = 'public/uploaded_files'

Modified: incubator/olio/webapp/rails/branches/caching/config/environments/production.rb
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/rails/branches/caching/config/environments/production.rb?rev=754695&r1=754694&r2=754695&view=diff
==============================================================================
--- incubator/olio/webapp/rails/branches/caching/config/environments/production.rb (original)
+++ incubator/olio/webapp/rails/branches/caching/config/environments/production.rb Sun Mar 15 17:19:13 2009
@@ -18,7 +18,7 @@
 # Disable delivery errors, bad email addresses will be ignored
 if CACHED
   if MEMCACHED
-    config.action_controller.cache_store = :mem_cache_store, 'localhost'
+    config.action_controller.cache_store = :mem_cache_store, CACHE_SERVER
   else
     config.action_mailer.raise_delivery_errors = false
     config.action_controller.cache_store = :file_store, RAILS_ROOT + '/tmp/cache/'