<%= cache @post do %>
The cache-key will be something like views/posts/744-20120613070958 . When the post is updated, and therefore gets a new cache-key, what happens to the old one? Will it just sit there forever? Do I need to add an `expires_in` option to every cache call, just to make sure it gets cleaned up every once in a while?
<%= cache @post, expires_in: 1.month do %>
Thanks,
Bryan
-- 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/BIHsV6-PyRoJ.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment