From 24d4d27b516fe3ecceee0db746364dcf6b9cf797 Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Sat, 31 Oct 2009 22:54:28 -0700 Subject: [PATCH] added caching for recent and most interesting views --- app/controllers/flickr_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/flickr_controller.rb b/app/controllers/flickr_controller.rb index 90c631b..b5cbd4c 100644 --- a/app/controllers/flickr_controller.rb +++ b/app/controllers/flickr_controller.rb @@ -3,6 +3,9 @@ class FlickrController < ApplicationController require 'flickraw' @@flickr_id = "13827925@N00" + caches_action :interesting, :recent + + def photo @pid = params[:id] begin