diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-27 14:15:09 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-27 14:15:09 +0100 |
commit | af24b1e306dab3ebe10d97f7777abedd011321da (patch) | |
tree | b440b839bf1e7465ab154cdc19ee9366b9f98198 /app/controllers/general_controller.rb | |
parent | 6c4c822ef7a4491bf821326af779e5be9118c0a1 (diff) | |
parent | 5b80d1b9a0933b1e20de013d1aa8b8522f2ad066 (diff) |
Merge branch 'release/0.6.1'0.6.1
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 6e89a2832..839064fcd 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -21,7 +21,7 @@ class GeneralController < ApplicationController # New, improved front page! def frontpage medium_cache - behavior_cache do + behavior_cache :tag => [session[:user_id], request.url] do # get some example searches and public bodies to display # either from config, or based on a (slow!) query if not set body_short_names = MySociety::Config.get('FRONTPAGE_PUBLICBODY_EXAMPLES', '').split(/\s*;\s*/).map{|s| "'%s'" % s.gsub(/'/, "''") }.join(", ") |