Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached? Thank you for your aswers! Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all > > Is it posible do have a expires_in with fragment-caching? Does this > work with memcached? > > Thank you for your aswers! > > Chris--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all > > Is it posible do have a expires_in with fragment-caching? Does this > work with memcached? > > Thank you for your aswers! > > Chris--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Quoting sigma <christoph.thommen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > 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 tried it with memory_store). If anyone is interested, I''ll post it on my blog. Jeffrey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeffrey L. Taylor wrote:> Quoting sigma <christoph.thommen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> 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 > tried it > with memory_store). If anyone is interested, I''ll post it on my blog. > > Jeffreyhi,I''m interesting.where your blog -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---