# Nested get\_cache

**URL:** <https://www.ruby-forum.com/t/nested-get-cache/132719>\
**Category:** Rails\
**Created:** [March 24, 2008, 12:38am UTC](https://www.ruby-forum.com/t/nested-get-cache/132719 "2008-03-24T00:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@grayson](https://www.ruby-forum.com/u/grayson)\
**Post date:** [March 24, 2008, 12:38am UTC](https://www.ruby-forum.com/t/nested-get-cache/132719/1 "2008-03-24T00:38:53Z")

</div>

Following this advise I’m trying to do a nested get\_cache.

[http://lists.danga.com/pipermail/memcached/2007-July/004581.html](http://lists.danga.com/pipermail/memcached/2007-July/004581.html)

Forum.get\_cache(185).users works fine and gives me back a list of users  
however these users don’t have the associations I’m looking for so I’d  
like to do another lookup like this

User.get\_cache(Forum.get\_cache(185).users) or  
User.get\_caches(Forum.get\_cache(185).users)

When I look at the query however this is what I see

…WHERE (`users`.`id` IN (0,0,0,0,0,0,0,0,0))

Do I need to do some type of flatten ?

Help please!
