changeset 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 e9b485638f93
children c09020fc73f5
files app/controllers/pastes_controller.rb
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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