purge 2x the unactivated old users

This commit is contained in:
Jeff Atwood 2016-07-27 03:28:56 -07:00
parent c58123b421
commit f8144f07fd

View file

@ -980,7 +980,7 @@ class User < ActiveRecord::Base
.joins('INNER JOIN user_stats AS us ON us.user_id = users.id') .joins('INNER JOIN user_stats AS us ON us.user_id = users.id')
.where("created_at < ?", SiteSetting.purge_unactivated_users_grace_period_days.days.ago) .where("created_at < ?", SiteSetting.purge_unactivated_users_grace_period_days.days.ago)
.where('NOT admin AND NOT moderator') .where('NOT admin AND NOT moderator')
.limit(100) .limit(200)
destroyer = UserDestroyer.new(Discourse.system_user) destroyer = UserDestroyer.new(Discourse.system_user)
to_destroy.each do |u| to_destroy.each do |u|