aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-07-26 02:39:57 +0200
committerDavid Cabo <david@calibea.com>2011-07-26 02:39:57 +0200
commit058a65ae0d079729b10a2954c472c336dce43245 (patch)
tree91543599b6db6538ceb2cdb36aaa9057ffe066fc /app/controllers/user_controller.rb
parent1ac1e5df9e1b8e670fbab1d2c65de6ce28232602 (diff)
parent04927e448f99f67bbfde88dd466f03fb23373b28 (diff)
Merge branch 'master' of github.com:sebbacon/alaveteli into asktheeu
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 2e3f6c9e0..d3c42c7f1 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -16,6 +16,7 @@ class UserController < ApplicationController
# Show page about a user
def show
+ long_cache
if MySociety::Format.simplify_url_part(params[:url_name], 'user', 32) != params[:url_name]
redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 'user', 32), :status => :moved_permanently
return