From 215216df48645cf8475d5b765a19c8d4413ccb3b Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 13 Jun 2019 17:41:18 +1000 Subject: [PATCH] FIX: stop re-downloading backup maxmind We omitted updating the mmdb_time which changed causing a constant re-download of the maxmind db --- lib/tasks/assets.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 4172d6fdc33..4a02d5f1b10 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -207,6 +207,7 @@ task 'assets:precompile' => 'assets:precompile:before' do mmdb_time ||= backup_mmdb_time if backup_mmdb_time && backup_mmdb_time >= mmdb_time copy_maxmind(GlobalSetting.maxmind_backup_path, DiscourseIpInfo.path) + mmdb_time = backup_mmdb_time end if !mmdb_time || mmdb_time < refresh_days.days.ago