This project is archived and is in readonly mode.
AR::Relation#cache_key
-
Robert Pankowecki
Nice, however undocumented.
-
laserlemon
It seems like custom cache keys and custom expiration are better suited for these types of situations. A relation's cache key doesn't communicate anything about its expiration. So if another baby were added to the people table, the cache key would remain. I'd just as soon do:
@results = Person.babies cache 'people/babies' do # Expensive stuff endif I have to expire the cache myself anyway.
-
David Trasbo
- State changed from new to wontfix
- Importance changed from to Low
I agree with, erm, laserlemon. Marking this wont fix for now (even though it's not really my decision). Will reopen if this develops further.
