Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Caching x
Autocomplete Search Terms
Episode #399Dec 31, 201220 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)
Cache Digests
Episode #387Oct 20, 201233 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)
Memcached & Dalli
Episode #380Sep 12, 201218 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)
Memoization (revised)
Episode #137Aug 18, 20129 comments

Memoization (revised)

Memoization is a convenient way to cache a method's response. Here I show several ways to accomplish this from scratch since the ActiveSupport::Memoizable module has been deprecated. (9 minutes)
Fragment Caching (revised)
Episode #90Feb 18, 201222 comments

Fragment Caching (revised)

If you need to cache a certain section of a page instead of the entire page, fragment caching is the way to go. Learn how caching is stored, how to create auto expiring caches, and more. (9 minutes)
Dynamic Page Caching (revised)
Episode #169Feb 11, 201219 comments

Dynamic Page Caching (revised)

Page caching is great for speeding up the performance of a page, but what if it contains user-specific content? Learn how to load content in dynamically through JavaScript in this episode. (7 minutes)
Page Caching (revised)
Episode #89Feb 02, 201220 comments

Page Caching (revised)

Page caching is an efficient way to cache full content to be served by the front-end web server. Learn how to deal with pagination, expiration with sweepers, and user-specific content in this episode. (9 minutes)
HTTP Caching
Episode #321Jan 30, 201225 comments

HTTP Caching

With HTTP response headers you can the cache in the user's browser and proxies. Etags, Last-Modified, Cache-Control and Rack::Cache are all covered here (15 minutes)
Touch and Cache
Episode #172Jul 27, 200915 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 #169Jul 06, 200949 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)