[Radiant] caching

Todd McGrath mcgrath at supergloo.com
Wed Mar 21 22:03:00 CDT 2007


> > Can I set cache options, expire_time for instance, outside of editting the
> > response_cache.rb file directly?
> 
> You sure can. Take a look at the environment files in config/environments/.
> 

Thanks,

I think I got it? -

Example to set the timeout from default of 5 to 10 minutes: 
ResponseCache.defaults[:expire_time]             = 600




More information about the Radiant mailing list