Displaying 1 result from an estimated 1 matches for "get_from_memcach".
Did you mean:
get_from_memcache
2010 Oct 04
4
http caching a dynamic page
...dynamic part are rendered
with fresh data.
I am using memcached mostly as an object store that I can minimize db
hits but I still am rendering a bunch of views over and over again.
What''s the general best practice to deal with something like this..
##Post controller
def show
@post = get_from_memcache
end
##show.html.erb
<div><%= post.body%></div>
<div><%= post.created_at%></div>
<div><%= post.category%></div>
<div><%= Post.favorites_count%></div>
The get_from_memcache return a @post object from a cache that
basically doe...