# Expire\_action confusion

**URL:** <https://www.ruby-forum.com/t/expire-action-confusion/172187>\
**Category:** Rails\
**Created:** [July 16, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/expire-action-confusion/172187 "2009-07-16T14:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philswenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Post date:** [July 16, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/expire-action-confusion/172187/1 "2009-07-16T14:41:16Z")

</div>

I just can’t figure this out.

I have this in my Players controller:  
caches\_action :show, :layout =\> false

I have a sweeper (that is getting called) that does this:  
expire\_action(:controller =\> :players, :action =\> :show, :id =\>  
player)

But this does not expire the cache - the element is still there and  
getting served.

I have tried with memcache and file\_store.

---

<div class="post-metadata">

**Author:** ![philswenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Post date:** [July 17, 2009, 11:18am UTC](https://www.ruby-forum.com/t/expire-action-confusion/172187/2 "2009-07-17T11:18:21Z")

</div>

do you have this line in the controller too?

cache\_sweeper =\> \<name\_of\_sweeper\>
