RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: caching xPerformance x
Touch and Cache
Episode #172Jul 27, 200952 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)
Memoization (revised)
Episode #137Aug 18, 201265 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)
Page Caching
Episode #89Jan 20, 200834 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)
Action Caching
Episode #93Feb 17, 200837 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 #90Jan 27, 200842 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)
MiniProfiler
Episode #368Jul 24, 2012107 comments

MiniProfiler

MiniProfiler allows you to see the speed of a request conveniently on the page. It also shows the SQL queries performed and allows you to profile a specific block of code. (9 minutes)
Client-Side Performance
Episode #369Jul 24, 201260 comments

Client-Side Performance

Optimizing Rails performance can only take you so far. The client-side plays a big part in how fast a page feels. Here I show many tools that can help make your apps faster than ever. (14 minutes)
Counter Cache Column
Episode #23Apr 25, 200769 comments

Counter Cache Column

If you need to display the record count for a has_many association, you can improve performance by caching that number in a column. (7 minutes)
Caching with Instance Variables
Episode #1Mar 04, 200769 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)
Memoization
Episode #137Nov 24, 200848 comments

Memoization

Rails 2.2 is out! In this episode I show how to upgrade Rails and then demonstrate one of the new additions: Memoization. (5 minutes)