aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-07-14 22:48:50 +0000
committerfrancis <francis>2009-07-14 22:48:50 +0000
commit5a34a09c42b26094588c18033bc749febe7819d5 (patch)
tree5ae6fee31a8dd37ea215b9e7f529c1be6c594ab6 /app/controllers/general_controller.rb
parent59f65edea4b20db78e9d56ef34d19b2a5f50185d (diff)
Cache some popular main pages.
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index df121531a..db533a4e4 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: general_controller.rb,v 1.47 2009-03-03 22:36:01 francis Exp $
+# $Id: general_controller.rb,v 1.48 2009-07-14 22:48:50 francis Exp $
class GeneralController < ApplicationController
@@ -29,6 +29,8 @@ class GeneralController < ApplicationController
rescue
@successful_requests = []
end
+
+ expires_in 10.minutes, :private => false
end
# Just does a redirect from ?query= search to /query