From 6e8bf1271f06662e0617b3ae8aebc0bd6f962811 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 9 Apr 2018 12:44:59 -0400 Subject: [PATCH] increase purge site settings for imports in case jobs like clean_up_uploads cause a mess --- script/import_scripts/base.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb index 56a7272a147..03a62dcc22a 100644 --- a/script/import_scripts/base.rb +++ b/script/import_scripts/base.rb @@ -90,6 +90,10 @@ class ImportScripts::Base SiteSetting.set(key, value) end + # Some changes that should not be rolled back after the script is done + SiteSetting.purge_unactivated_users_grace_period_days = 60 + SiteSetting.purge_deleted_uploads_grace_period_days = 90 + RateLimiter.disable end