diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-10-14 03:04:13 -0700 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-10-14 03:04:13 -0700 |
commit | e320c0afaf1dd83b9a8e6ca0d4cb950ade7927ea (patch) | |
tree | be86931a4fbe5f007888549777ce3033223eea9b /guides | |
parent | a5d4e1c8507ec95d8c0366b37b26b97426b91100 (diff) | |
parent | 91222f6b76a49148ae83734651b8369b2d233cae (diff) | |
download | rails-e320c0afaf1dd83b9a8e6ca0d4cb950ade7927ea.tar.gz rails-e320c0afaf1dd83b9a8e6ca0d4cb950ade7927ea.tar.bz2 rails-e320c0afaf1dd83b9a8e6ca0d4cb950ade7927ea.zip |
Merge pull request #118 from patriciomacadden/master
Fix a typo in caching with rails guide
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/caching_with_rails.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md index e4d2ecaba1..08f1ef879d 100644 --- a/guides/source/caching_with_rails.md +++ b/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. |