aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-09-03 17:35:44 +0100
committerFrancis Irving <francis@mysociety.org>2010-09-03 17:35:44 +0100
commitd62de2e81fed40f08ba3face75ac41cf4f57a835 (patch)
treebd1031cca3aa04b67d0b728249823bf5bd4d5adb /app/controllers/request_controller.rb
parentec1ba0e3f5bc5c26aa5769a959f061857973b08d (diff)
Reorganise list page structure
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index f56d391a3..4588ef369 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -119,7 +119,15 @@ class RequestController < ApplicationController
else
raise "unknown request list view " + @view.to_s
end
- @xapian_object = perform_search([InfoRequestEvent], query, sortby, 'request_collapse')
+
+ #behavior_cache do
+ xapian_object = perform_search([InfoRequestEvent], query, sortby, 'request_collapse')
+ @list_results = xapian_object.results.map { |r| r[:model] }
+ @matches_estimated = xapian_object.matches_estimated
+
+ #end
+ #@page = get_search_page_from_params if !@page # used in cache case, as perform_search sets @page as side effect
+
@title = @title + " (page " + @page.to_s + ")" if (@page > 1)
@feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss] } ]
@@ -128,8 +136,6 @@ class RequestController < ApplicationController
if @page > 20
@no_crawl = true
end
-
- cache_in_squid
end
# Page new form posts to