Leveraging and expiring your cache for model, association and query caching in Rails
This article explains how to leverage caching on Active Record models to speed up frequently used and/or expensive queries. It also covers how to properly expire cache entries using record callbacks so as to keep your cache consistent over time.