Permalink
Browse files

Merge pull request #118 from patriciomacadden/master

Fix a typo in caching with rails guide
  • Loading branch information...
vijaydev committed Oct 14, 2012
2 parents a5d4e1c + 91222f6 commit e320c0afaf1dd83b9a8e6ca0d4cb950ade7927ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/caching_with_rails.md
@@ -91,7 +91,7 @@ Or, you can set custom gzip compression level (level names are taken from `Zlib`
caches_page :image, :gzip => :best_speed
```
-NOTE: Page caching ignores all parameters. For example `/products?page=1` will be written out to the filesystem as `products.html` with no reference to the `page` parameter. Thus, if someone requests `/products?page=2` later, they will get the cached first page. A workaround for this limitation is to include the parameters in the page's path, e.g. `/productions/page/1`.
+NOTE: Page caching ignores all parameters. For example `/products?page=1` will be written out to the filesystem as `products.html` with no reference to the `page` parameter. Thus, if someone requests `/products?page=2` later, they will get the cached first page. A workaround for this limitation is to include the parameters in the page's path, e.g. `/products/page/1`.
INFO: Page caching runs in an after filter. Thus, invalid requests won't generate spurious cache entries as long as you halt them. Typically, a redirection in some before filter that checks request preconditions does the job.

0 comments on commit e320c0a

Please sign in to comment.