fix cache hole

This commit is contained in:
Sam 2013-05-13 11:09:03 +10:00
parent d68e3f7369
commit a27046bacd

View file

@ -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