# Cache\_fu and sweepers

**URL:** <https://www.ruby-forum.com/t/cache-fu-and-sweepers/127690>\
**Category:** Rails\
**Created:** [January 31, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/cache-fu-and-sweepers/127690 "2008-01-31T12:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [January 31, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/cache-fu-and-sweepers/127690/1 "2008-01-31T12:59:55Z")

</div>

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 ?

TIA,  
ngw
