# Cache\_fu bug?

**URL:** <https://www.ruby-forum.com/t/cache-fu-bug/146103>\
**Category:** Rails\
**Created:** [August 17, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/cache-fu-bug/146103 "2008-08-17T23:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextpulse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Post date:** [August 17, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/cache-fu-bug/146103/1 "2008-08-17T23:52:31Z")

</div>

myobj = Myobj.cached(:find\_by\_user\_id, :with=\>user\_id)

Debug gives:  
==\> Got Myobj:find\_by\_user\_id:1

BUT on expire\_cache:

==\>Deleted Myobj:1:find\_by\_user\_id

The key is totally screwed up.

I’m digging into the plugin code right now - but does anyone know if  
this is a bug or am I doing something wrong?

thanks.
