RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Free Episodes xCaching x
Cache Digests
Episode #387 – Oct 20, 2012 – 91 comments

Cache Digests

The cache_digests gem (also included in Rails 4) will automatically add a digest to the fragment cache key based on the template. If a template changes the cache will auto-expire. But watch out for the gotchas! (7 minutes)
Touch and Cache
Episode #172 – Jul 27, 2009 – 52 comments

Touch and Cache

Rails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode. (6 minutes)
Dynamic Page Caching
Episode #169 – Jul 06, 2009 – 79 comments

Dynamic Page Caching

Use JavaScript to allow dynamic content in a page cache. In this episode I show you how to insert the user-specific content into a page through JavaScript. (11 minutes)
Caching in Rails 2.1
Episode #115 – Jun 23, 2008 – 78 comments

Caching in Rails 2.1

Rails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode. (8 minutes)
Action Caching
Episode #93 – Feb 17, 2008 – 37 comments

Action Caching

Action caching behaves much like page caching except it processes the controller filters. You can also make it conditional as seen in this episode. (7 minutes)
Fragment Caching
Episode #90 – Jan 27, 2008 – 42 comments

Fragment Caching

Sometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode. (6 minutes)
Page Caching
Episode #89 – Jan 20, 2008 – 34 comments

Page Caching

Page caching is an efficient way to cache stateless content. In this episode I will show you how to cache the dynamic javascript we created last week. (6 minutes)
Caching with Instance Variables
Episode #1 – Mar 04, 2007 – 69 comments

Caching with Instance Variables

Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable! (2 minutes)