From a27046bacd2d38ce6cbe51ba37ac45b4fc6a4961 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 13 May 2013 11:09:03 +1000 Subject: [PATCH] fix cache hole --- app/controllers/admin/flags_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/admin/flags_controller.rb b/app/controllers/admin/flags_controller.rb index 5a9b00de0..bfeb607c3 100644 --- a/app/controllers/admin/flags_controller.rb +++ b/app/controllers/admin/flags_controller.rb @@ -1,6 +1,9 @@ class Admin::FlagsController < Admin::AdminController def index + # we may get out of sync, fix it here + PostAction.update_flagged_posts_count + sql = SqlBuilder.new "select p.id, t.title, p.cooked, p.user_id, p.topic_id, p.post_number, p.hidden, t.visible topic_visible from posts p join topics t on t.id = topic_id