aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-11 14:59:26 -0700
committerLouise Crow <louise.crow@gmail.com>2013-06-11 14:59:26 -0700
commite1d5d1fdd379824b7890d4b24ae19769c142f72d (patch)
treeea2ff3aca862efd7a2d9a2e41ebe872c3702ab3e /app/controllers/user_controller.rb
parentbe4a2e1de69d4c12a018052f3906ddd8ea5587f1 (diff)
Cache a user's profile photo rather than repulling it each time.hotfix/0.11.0.8
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index b7912b528..e21315eb6 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -532,6 +532,7 @@ class UserController < ApplicationController
# actual profile photo of a user
def get_profile_photo
+ long_cache
@display_user = User.find(:first, :conditions => [ "url_name = ? and email_confirmed = ?", params[:url_name], true ])
if !@display_user
raise ActiveRecord::RecordNotFound.new("user not found, url_name=" + params[:url_name])