FIX: stop re-downloading backup maxmind

We omitted updating the mmdb_time which changed causing a constant
re-download of the maxmind db
This commit is contained in:
Sam Saffron 2019-06-13 17:41:18 +10:00
parent 77f5577e30
commit 215216df48
1 changed files with 1 additions and 0 deletions

View File

@ -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