Sometimes your web application can be slow. Or you have a surge of traffic. Or you want to run your site on slow hardware or a shared host. For those times you need caching.
Ruby on Rails comes with page, action, and fragment caching built-in. You can use these techniques on single pages or in combinations across the pages of your application.
This screencast show you how to use all three and points out a few troubleshooting tips along the way.
Now with a convenient chapter menu! This is a free update for anyone who purchased this screencast in the past.
Source code included. Uses the current Rails 1.2.2. Purchase includes access to Quicktime 7 and iPod-ready versions. Subscriptions are also available.
See also Part II where you’ll learn how to benchmark a full Rails stack with httperf (authored together with Zed Shaw).
| Minute Mark | Topic |
| 0 | Caching Basics |
| 2 | Theory |
| 5 | Setup |
| 21 | Page Caching |
| 28 | Sweeping |
| 52 | Strategies |
| 56 | Tips |
| 1:03 | Action Caching |
| 1:20 | Fragment Caching |
| 1:31 | Resources |
| 1:32 | Benchmarking Preview |
This is an intermediate topic and assumes that you have built at least one Rails application. A simple application is built from scratch, and caching techniques are applied to it.
Revision (Notes) · Updated: Oct 07, 2007 · Length: 92 min · 95 MB
Login or signup and enter the code on your account page. If it is still valid you will be able to browse the list of products and redeem one!
Save money and learn a lot, too! PeepCode Unlimited gives you access to everything we publish for a full year. A 10 Pack will save you $20 and a 5 Pack will save you $5.
Site licenses and team subscriptions are also available! Contact peepcode@topfunky.com with the number of developers you have and the number of credits you would like to buy and we will send you a personalized quote.
“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“I suspect there are a lot of smart DF readers out there who know nothing about the Unix-y aspects of Mac OS X, would like to, but never found a good way to get started. This screencast is it.” John Gruber, Daring Fireball
“Mercurial is just what I was looking for. Happy to pay to support people making such high-quality and informative screencasts.” Jason Kottke
“Absolutely fantastic - I haven't seen a PeepCode screencast before and I'm super impressed with the level of graphics/audio...I just finished it and it really is a great intro. Well done.” David Kaneda, author of jQTouch
“These things are fantastic and the price is a steal. I strongly urge you to support this effort and buy the episodes. What a terrific way to learn!” Scott Barron, Rails Core Committer