]> git.openstreetmap.org Git - rails.git/blobdiff - config/environment.rb
Introduce some caching for diary views.
[rails.git] / config / environment.rb
index c26592215e921a0373879c72d01f5942a4b3a2ba..4493d07a43359b5c37d2f1a8269aad00b2260796 100644 (file)
@@ -65,6 +65,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,