From 486a1ef2c11cfd0a9063cc1b4638d8ff651d549e Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 12 May 2015 17:26:32 +0100 Subject: Remove summary stats from admin summary page They're duplicated on /admin/summary and a bit slow [1]. [1] https://wiki.postgresql.org/wiki/Slow_Counting --- app/controllers/admin_general_controller.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'app/controllers/admin_general_controller.rb') diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb index c81b397a3..4927f631b 100644 --- a/app/controllers/admin_general_controller.rb +++ b/app/controllers/admin_general_controller.rb @@ -7,18 +7,6 @@ class AdminGeneralController < AdminController def index - # Overview counts of things - @public_body_count = PublicBody.count - - @info_request_count = InfoRequest.count - @outgoing_message_count = OutgoingMessage.count - @incoming_message_count = IncomingMessage.count - - @user_count = User.count - @track_thing_count = TrackThing.count - - @comment_count = Comment.count - # Tasks to do @requires_admin_requests = InfoRequest.find_in_state('requires_admin') @error_message_requests = InfoRequest.find_in_state('error_message') -- cgit v1.2.3