If I have something like Foo.cached( :bar ) where in Foo.bar I run a very expensive finder, how can I use a sweeper to expire my cache ?
I’m trying to use reset_cache but probably I didn’t get how it works …
Someone has an example on hand ?
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks