aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-02-24 01:34:04 +0100
committerXavier Noria <fxn@hashref.com>2010-02-24 01:34:04 +0100
commit47683b7d0ec5489aa01d1526c1b147528eca6170 (patch)
treec2e3c8600c60bd9be315e6d26485fa5e32dba513 /railties/guides
parentcadd5937fe186abf3b4b0964aa9d2d53ae4b609b (diff)
downloadrails-47683b7d0ec5489aa01d1526c1b147528eca6170.tar.gz
rails-47683b7d0ec5489aa01d1526c1b147528eca6170.tar.bz2
rails-47683b7d0ec5489aa01d1526c1b147528eca6170.zip
caching guide: fixes a typo, thanks to Jonathan Bryan
Diffstat (limited to 'railties/guides')
-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 ac6f944457..e27c2a6dc6 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -152,7 +152,7 @@ expire_fragment('all_available_products')
h4. Sweepers
-Cache sweeping is a mechanism which allows you to get around having a ton of +expire_{page,action,fragment}+ calls in your code. It does this by moving all the work required to expire cached content into a +ActionController::Caching::Sweeper+ class. This class is an Observer and looks for changes to an object via callbacks, and when a change occurs it expires the caches associated with that object in an around or after filter.
+Cache sweeping is a mechanism which allows you to get around having a ton of +expire_{page,action,fragment}+ calls in your code. It does this by moving all the work required to expire cached content into an +ActionController::Caching::Sweeper+ subclass. This class is an observer and looks for changes to an object via callbacks, and when a change occurs it expires the caches associated with that object in an around or after filter.
Continuing with our Product controller example, we could rewrite it with a sweeper like this: