FIX: stop re-downloading backup maxmind

FIX: stop re-downloading backup maxmind

We omitted updating the mmdb_time which changed causing a constant re-download of the maxmind db

diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 4172d6f..4a02d5f 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

GitHub sha: 215216df

3 Likes