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" }
|
config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
|
||||||
end
|
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.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
# config.action_controller.asset_host = "http://assets.example.com"
|
# config.action_controller.asset_host = "http://assets.example.com"
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Set the page cache directory
|
|
||||||
Rails.application.config.action_controller.page_cache_directory = "#{Rails.root.to_s}/public"
|
|
Loading…
Add table
Add a link
Reference in a new issue