# Empty all cache?

**URL:** <https://www.ruby-forum.com/t/empty-all-cache/174279>\
**Category:** Rails\
**Created:** [August 24, 2009, 10:09am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279 "2009-08-24T10:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [August 24, 2009, 10:09am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279/1 "2009-08-24T10:09:00Z")

</div>

Hi,

I just made a mistake to cache the index action and now I cannot figure  
out how to delete it?

I have tried the following.

- restarted server
- set perform\_caching to false
- changed port
- changed cache store to different ports and file path.
- tried to expire\_page :action =\> :index
- tried to expire\_action :action =\> :index
- tried to restart my computer
- tried different enviroments

The cache is still hanging on the root index page.

I need help here to destroy or delete all cache in my app?

Thanks for help.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [August 24, 2009, 10:11am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279/2 "2009-08-24T10:11:03Z")

</div>

and now I tried.

- rake tmp:cache:clear

did not work either.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [August 24, 2009, 10:20am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279/3 "2009-08-24T10:20:50Z")

</div>

then I tried.

> > Rails.cache  
> > =\> #\<ActiveSupport::Cache::MemoryStore:0x177b11c @data={}\>
> 
> > Rails.cache.clear  
> > =\> {}
> 
> > Rails.cache  
> > =\> #\<ActiveSupport::Cache::MemoryStore:0x177b11c @data={}\>

This did not get me anywhere.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [August 24, 2009, 11:11am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279/4 "2009-08-24T11:11:29Z")

</div>

Weird …

Now it’s gone when I logged out of the current user. :S:S
