Hi all
Is it posible do have a expires_in with fragment-caching? Does this
work with memcached?
Thank you for your aswers!
Chris
Hi all
Is it posible do have a expires_in with fragment-caching? Does this
work with memcached?
Thank you for your aswers!
Chris
Chris,
<% cache(key, :expires_in => 5.minutes) do %>
hello, world!
<% end %>
If you are using rails 2.1 && memcached, then you can do this :
<% cache(key, :expires_in => 5.minutes) do %>
hello, world
<% end %>
Jeffrey L. Taylor wrote:
Quoting sigma [email protected]:
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
hi,I’m interesting.where your blog
Quoting sigma [email protected]:
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs