Configure page caching in the production environment
This commit is contained in:
parent
b0bc04abf1
commit
5208b7e3af
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue