Browse files

Add documentation for page_cache_directory and page_cache_extension t…

…o config guide
  • Loading branch information...
radar authored and fxn committed Nov 29, 2010
1 parent 7d334c4 commit 36fd1a9d4017df21f72ac744949098187951fbf9
Showing with 4 additions and 0 deletions.
  1. +4 −0 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.

0 comments on commit 36fd1a9

Please sign in to comment.