# How do you configure Rack::Cache in Radiant?

**URL:** <https://www.ruby-forum.com/t/how-do-you-configure-rack-cache-in-radiant/176528>\
**Category:** Radiant CMS\
**Created:** [October 1, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/how-do-you-configure-rack-cache-in-radiant/176528 "2009-10-01T18:02:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfoxny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a6a055/32.png) [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Post date:** [October 1, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/how-do-you-configure-rack-cache-in-radiant/176528/1 "2009-10-01T18:02:04Z")

</div>

I’d like to use memcached as the backend storage for Radiant’s cache  
(v0.8.1), however, I haven’t been able to find documentation on how to  
configure the backend store. I know that Radiant uses Rack::Cache now  
and I’ve read how to configure Rack::Cache itself, but, I haven’t been  
able to figure out how to do it from “within” Radiant.

I found an old post from around the time when Rack::Cache was introduced  
that said you can put something like this in your environment:

# environment.rb

config.middleware.use(Rack::Cache,  
:verbose =\> true, # should be false in real life  
:metastore =\> “memcached://localhost:11211/radiant/meta”,  
:entitystore =\> “memcached://localhost:11211/radiant/entity”)

Which I tried, but, Radiant continued to use the filesystem as it’s  
cache store, i.e., it wrote it’s cache files to RAILS\_ROOT/tmp/cache. I  
also noticed that there is a radiant\_config\_cache.txt file in  
RAILS\_ROOT/tmp, but, I’m not sure what if anything should go in there.

Any help would be much appreciated.

Thanks in advance,  
Jason
