[Radiant] caching

John W. Long ng at johnwlong.com
Wed Mar 21 22:40:10 CDT 2007


Todd McGrath wrote:
>>> 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/.
> Example to set the timeout from default of 5 to 10 minutes: 
> ResponseCache.defaults[:expire_time]             = 600

Or:

ResponseCache.defaults[:expire_time]             = 5.minutes

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list