Configure page caching in the production environment

This commit is contained in:
Tom Hughes 2013-09-23 10:39:11 +01:00
parent b0bc04abf1
commit 5208b7e3af
2 changed files with 3 additions and 2 deletions

View file

@ -61,6 +61,9 @@ OpenStreetMap::Application.configure do
config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
end
# Configure caching of static assets
config.action_controller.page_cache_directory = Rails.public_path
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = "http://assets.example.com"