mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
fix cache hole
This commit is contained in:
parent
d68e3f7369
commit
a27046bacd
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue