diff app/controllers/pastes_controller.rb @ 48:f649b46fca4f

Cache all the things! Or just the show page.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 03:05:43 +0700
parents 59ef6698fa0d
children c09020fc73f5
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb	Thu Oct 04 03:01:24 2012 +0700
+++ b/app/controllers/pastes_controller.rb	Thu Oct 04 03:05:43 2012 +0700
@@ -1,4 +1,5 @@
 class PastesController < ApplicationController
+  caches_page :show
   # GET /pastes/1
   # GET /pastes/1.json
   def show