aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-05 16:53:22 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-05 16:53:22 -0500
commitd1ae6c5f7066e100d0b85a8915a8c37861b83b61 (patch)
treeaa504a519a2f0a44cc6dddf305e0edf339a4c1ef /guides
parenta0d5dca7a6c9a49491d84bd2526a395d824f1982 (diff)
downloadrails-d1ae6c5f7066e100d0b85a8915a8c37861b83b61.tar.gz
rails-d1ae6c5f7066e100d0b85a8915a8c37861b83b61.tar.bz2
rails-d1ae6c5f7066e100d0b85a8915a8c37861b83b61.zip
use default_static_extension instead of page_cache_extension deprecated option [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/caching_with_rails.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md
index 78c31c527e..e4d2ecaba1 100644
--- a/guides/source/caching_with_rails.md
+++ b/guides/source/caching_with_rails.md
@@ -47,7 +47,7 @@ Let's say you have a controller called `ProductsController` and an `index` actio
By default, the page cache directory is set to `Rails.public_path` (which is usually set to the `public` folder) and this can be configured by changing the configuration setting `config.action_controller.page_cache_directory`. Changing the default from `public` helps avoid naming conflicts, since you may want to put other static html in `public`, but changing this will require web server reconfiguration to let the web server know where to serve the cached files from.
-The Page Caching mechanism will automatically add a `.html` extension to requests for pages that do not have an extension to make it easy for the webserver to find those pages and this can be configured by changing the configuration setting `config.action_controller.page_cache_extension`.
+The Page Caching mechanism will automatically add a `.html` extension to requests for pages that do not have an extension to make it easy for the webserver to find those pages and this can be configured by changing the configuration setting `config.action_controller.default_static_extension`.
In order to expire this page when a new product is added we could extend our example controller like this: