[Rails] Re: expires_in with fragment-caching

2009-03-09 Thread Andi Cutman
Jeffrey L. Taylor wrote: Quoting sigma christoph.thom...@gmail.com: Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached? Yes, though memcached is the only mechanism it is already built-in. There is a way that works with the other three

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread gautam chekuri
Chris, 1. If you are running rails 2.1 memcached then you can do this in fragment caching: % cache(key, :expires_in = 5.minutes) do % hello, world! % end % - Gautam On Dec 29, 7:18 pm, sigma christoph.thom...@gmail.com wrote: Hi all Is it posible do have a expires_in with

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread gautam chekuri
If you are using rails 2.1 memcached, then you can do this : % cache(key, :expires_in = 5.minutes) do % hello, world % end % On Dec 29, 7:18 pm, sigma christoph.thom...@gmail.com wrote: Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached?

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread Jeffrey L. Taylor
Quoting sigma christoph.thom...@gmail.com: Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached? Yes, though memcached is the only mechanism it is already built-in. There is a way that works with the other three mechanisms (I think, I've only