# Deactivate page cache for development?

**URL:** <https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664>\
**Category:** Radiant CMS\
**Created:** [December 29, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664 "2006-12-29T18:57:10Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 2:55am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/21 "2008-12-17T02:55:21Z")

</div>

Radiant maintains its own page cache directory, which is typically  
RADIANT\_PROJECT/cache. Don’t change it and you’ll be fine.

Sean

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 3:01am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/22 "2008-12-17T03:01:50Z")

</div>

Sean C. wrote:

> Radiant maintains its own page cache directory, which is typically  
> RADIANT\_PROJECT/cache. Don’t change it and you’ll be fine.

Sorry to be dense, but I need to disable the radiant page cache because  
I’m trying to display something from the session on a page. I have  
successfully written a radius tag (whoopee!) which can display things  
from the session, but my Page.process() method isn’t being called  
because I think my page is cached.

How do I disable the radiant cache without erasing my public directory?

Thanks for the reply.

Steve

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 3:58am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/23 "2008-12-17T03:58:46Z")

</div>

Sean C. wrote:

> Ah, I initially misunderstood. Put this in your config/environment.rb:
> 
> ResponseCache.instance.perform\_caching = false

Hmm doesn’t seem to be working. Page.process() still isn’t being  
called.

Does it matter where in environment.rb I put it? I don’t understand  
environment.rb very well yet.

Steve

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 3:16am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/24 "2008-12-17T03:16:59Z")

</div>

Ah, I initially misunderstood. Put this in your config/environment.rb:

ResponseCache.instance.perform\_caching = false

Sean

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 4:26am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/25 "2008-12-17T04:26:39Z")

</div>

Steven L. wrote:

> Does it matter where in environment.rb I put it? I don’t understand  
> environment.rb very well yet.
> 
> Steve

At the bottom would be best. Also, be sure to clear your cache/  
directory.

Sean

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [December 17, 2008, 4:47am UTC](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664/26 "2008-12-17T04:47:10Z")

</div>

Sean C. wrote:

> > Also, be sure to clear your cache/ directory.

That was it! Thank you Sean.

Steve

[Previous page](https://www.ruby-forum.com/t/deactivate-page-cache-for-development/80664.md?page=1)
