]> git.openstreetmap.org Git - rails.git/blobdiff - config/environment.rb
Use system_timer for timeouts to make them more reliable.
[rails.git] / config / environment.rb
index c26592215e921a0373879c72d01f5942a4b3a2ba..727ab2d46cb2d9ef28c3c87f84b2cfdc3ab12a2a 100644 (file)
@@ -52,6 +52,7 @@ Rails::Initializer.run do |config|
   config.gem 'rmagick', :lib => 'RMagick'
   config.gem 'oauth', :version => '>= 0.3.6'
   config.gem 'httpclient'
+  config.gem 'system_timer'
 
   # Only load the plugins named here, in the order given. By default, all plugins 
   # in vendor/plugins are loaded in alphabetical order.
@@ -65,6 +66,9 @@ Rails::Initializer.run do |config|
   # (by default production uses :info, the others :debug)
   # config.log_level = :debug
 
+  # Configure cache
+  config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
+
   # Your secret key for verifying cookie session data integrity.
   # If you change this key, all old sessions will become invalid!
   # Make sure the secret is at least 30 characters and all random,