Chapter 17. Caching and Performance
Hard work never killed anybody, but why take the chance?
—Edgar Bergen (as Charlie McCarthy), 1903–1978
Historically Rails has suffered from an unfair barrage of criticisms over perceived weaknesses in scalability. Luckily, the continued success of Rails in ultra-high-traffic usage at companies such as Twitter and Groupon has made liars of the critics. Nowadays, you can make your Rails application very responsive and scalable with ease. The mechanisms used to squeeze maximum performance out of your Rails apps are the subject of this chapter.
View caching lets you specify that anything from entire pages down to fragments of the page should be captured to disk as HTML files and sent along by your web server ...