cached_models provides to your models a transparent approach to use Rails internal cache mechanism.
Usually, when you decide to use cache for your ActiveRecord results, you have to manually implement complex expiring policies.
cached_models simplifies your code: class Post true
end
class Author true
end
That’s all!!.
A more complex example.. has_many :tickets, :cached => true
has_many :recent_tickets, :limit => 5,
:order => ‘id DESC’, :cached => true
end
class Project true