discourse/app/jobs/scheduled/ensure_db_consistency.rb
Sam eeff092ead PERF/FIX: Dismiss Post coming back
Now that post numbers are monotonically increasing we should not need this job
Stuff should just self correct as users browser along

Corrected the job not to reset the disimissed posts in case we need it
2014-08-11 10:26:46 +10:00

14 lines
347 B
Ruby

module Jobs
# various consistency checks
class EnsureDbConsistency < Jobs::Scheduled
every 12.hours
def execute(args)
UserVisit.ensure_consistency!
Group.refresh_automatic_groups!
Notification.ensure_consistency!
UserAction.ensure_consistency!
UserStat.update_view_counts(13.hours.ago)
end
end
end