aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorCheah Chu Yeow <chuyeow@gmail.com>2011-11-13 13:34:16 +0800
committerCheah Chu Yeow <chuyeow@gmail.com>2011-11-13 13:34:16 +0800
commitd9703fe92ea0d39eed7bec44027468e6fed70a8a (patch)
tree431d298a09bc357293f81ae637973d3e363b36e3 /railties
parent650ec898e5f4668b63925d05f8b722a5226a79dd (diff)
downloadrails-d9703fe92ea0d39eed7bec44027468e6fed70a8a.tar.gz
rails-d9703fe92ea0d39eed7bec44027468e6fed70a8a.tar.bz2
rails-d9703fe92ea0d39eed7bec44027468e6fed70a8a.zip
Clearing cache in action caching is not "the exact same way" as with page caching.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/caching_with_rails.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile
index 972579b453..aa08148bdb 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -72,7 +72,7 @@ h4. Action Caching
One of the issues with Page Caching is that you cannot use it for pages that require to restrict access somehow. This is where Action Caching comes in. Action Caching works like Page Caching except for the fact that the incoming web request does go from the webserver to the Rails stack and Action Pack so that before filters can be run on it before the cache is served. This allows authentication and other restriction to be run while still serving the result of the output from a cached copy.
-Clearing the cache works in the exact same way as with Page Caching.
+Clearing the cache works in a similar way to Page Caching, except you use the +expire_action+ instead of +expire_page+.
Let's say you only wanted authenticated users to call actions on +ProductsController+.