aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/caching_with_rails.textile
diff options
context:
space:
mode:
authorJudeArasu <judearasu@gmail.com>2011-07-21 23:52:10 +0530
committerJudeArasu <judearasu@gmail.com>2011-07-21 23:52:10 +0530
commit6dfed66c322a6812d3b89490c7a1fcdb664f9eda (patch)
tree306e24e62f7f84d8210bbcc3e84c25b1c02d8275 /railties/guides/source/caching_with_rails.textile
parent9c7a55cf1126216eefb8b56564d4b2fc2363cb87 (diff)
downloadrails-6dfed66c322a6812d3b89490c7a1fcdb664f9eda.tar.gz
rails-6dfed66c322a6812d3b89490c7a1fcdb664f9eda.tar.bz2
rails-6dfed66c322a6812d3b89490c7a1fcdb664f9eda.zip
grammatical changes
Diffstat (limited to 'railties/guides/source/caching_with_rails.textile')
-rw-r--r--railties/guides/source/caching_with_rails.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile
index 1bd409944a..addfec3563 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -15,7 +15,7 @@ h3. Basic Caching
This is an introduction to the three types of caching techniques that Rails provides by default without the use of any third party plugins.
-To start playing with caching you'll want to ensure that +config.action_controller.perform_caching+ is set to +true+ if you're running in development mode. This flag is normally set in the corresponding +config/environments/*.rb+ and caching is disabled by default for development and test, and enabled for production.
+To start playing with caching you'll want to ensure that +config.action_controller.perform_caching+ is set to +true+, if you're running in development mode. This flag is normally set in the corresponding +config/environments/*.rb+ and caching is disabled by default for development and test, and enabled for production.
<ruby>
config.action_controller.perform_caching = true
@@ -25,7 +25,7 @@ h4. Page Caching
Page caching is a Rails mechanism which allows the request for a generated page to be fulfilled by the webserver (i.e. apache or nginx), without ever having to go through the Rails stack at all. Obviously, this is super-fast. Unfortunately, it can't be applied to every situation (such as pages that need authentication) and since the webserver is literally just serving a file from the filesystem, cache expiration is an issue that needs to be dealt with.
-So, how do you enable this super-fast cache behavior? Simple, let's say you have a controller called +ProductsController+ and an +index+ action that lists all the products
+So, how do you enable this super-fast cache behavior?. Simple, let's say you have a controller called +ProductsController+ and an +index+ action that lists all the products.
<ruby>
class ProductsController < ActionController