RailsCasts Pro episodes are now free!

Learn more or hide this

Model Caching (revised)

#115 Model Caching (revised)

May 13, 2013 | 12 minutes | Performance, Active Record
Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record.
  • Download:
  • source codeProject Files in Zip (67.4 KB)
  • mp4Full Size H.264 Video (28.4 MB)
  • m4vSmaller H.264 Video (14.6 MB)
  • webmFull Size VP8 Video (17.8 MB)
  • ogvFull Size Theora Video (35.1 MB)