Guest User

Untitled

a guest
Feb 20th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Show.html.haml
  2. = fetch_partial "posts/post", :post => @post, :updated_at => (@post.updated_at rescue nil)
  3.  
  4. show action
  5. def show(id)
  6. @post = Post.get(id)
  7. raise NotFound unless @post
  8. display @post
  9. end
  10.  
  11. The tmp/ cache
  12. tmp/fragments/home/justin/merb/blog/app/views/posts/_post.html--
  13. _post.html--3df99173854b0158ad6ca14be4d7d44e31b75bf191437bded3f3e26046f5a792
  14. _post.html--cedeaf1706c64425fc3cb61ba001ae1cdbfe83a500ad5af431cf519bb0f5a588
  15.  
  16. Every hit to the show action creates a new cache
Add Comment
Please, Sign In to add comment