RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: gem 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)
Autocomplete Search Terms
Episode #399 – Dec 31, 2012 – 90 comments

Autocomplete Search Terms

Learn how to add autocompletion to a search form and improve performance using Rack middleware, caching and switching from SQL to Redis. (17 minutes)
Memcached & Dalli
Episode #380 – Sep 12, 2012 – 83 comments

Memcached & Dalli

Memcached is an excellent cache store, and Dalli is the best way to interact with it through Ruby. Here I show various ways to use Memcached in a Rails app including how to set it up in production. (12 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)
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)