aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-29 18:27:23 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-11-29 18:27:23 +1100
commit15cfaa0a3634b23477f74dbfd1fafd351933e17c (patch)
treecc55c10264bff36d385cb6021f94b67a124798ce
parentc4cbf733a1a3fe0ab46cc707d6793e3b2de56f60 (diff)
downloadrails-15cfaa0a3634b23477f74dbfd1fafd351933e17c.tar.gz
rails-15cfaa0a3634b23477f74dbfd1fafd351933e17c.tar.bz2
rails-15cfaa0a3634b23477f74dbfd1fafd351933e17c.zip
Add documentation for page_cache_directory and page_cache_extension to config guide
-rw-r--r--railties/guides/source/configuring.textile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 47b6742f8b..ab9dd220bd 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -226,6 +226,10 @@ h4. Configuring Action Controller
* +config.action_controller.asset_path+ takes a block which configures where assets can be found. Shorter version of +config.action_controller.asset_path+.
+* +config.action_controller.page_cache_directory+ should be the document root for the web server and is set using <tt>Base.page_cache_directory = "/document/root"</tt>. For Rails, this directory has already been set to Rails.public_path (which is usually set to <tt>Rails.root + "/public"</tt>). Changing this setting can be useful to avoid naming conflicts with files in <tt>public/</tt>, but doing so will likely require configuring your web server to look in the new location for cached files.
+
+* +config.action_controller.page_cache_extension+ configures the extension used for cached pages saved to +page_cache_directory+. Defaults to +.html+
+
* +config.action_controller.default_charset+ specifies the default character set for all renders. The default is "utf-8".
* +config.action_controller.logger+ accepts a logger conforming to the interface of Log4r or the default Ruby 1.8+ Logger class, which is then used to log information from Action Controller. Set to nil to disable logging.