]> git.openstreetmap.org Git - rails.git/commitdiff
Configure the page cache
authorTom Hughes <tom@compton.nu>
Mon, 23 Sep 2013 09:07:23 +0000 (10:07 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 23 Sep 2013 09:07:23 +0000 (10:07 +0100)
config/initializers/page_cache.rb [new file with mode: 0644]

diff --git a/config/initializers/page_cache.rb b/config/initializers/page_cache.rb
new file mode 100644 (file)
index 0000000..e00d1c2
--- /dev/null
@@ -0,0 +1,2 @@
+# Set the page cache directory
+Rails.application.config.action_controller.page_cache_directory = "#{Rails.root.to_s}/public"