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:
parent
77f5577e30
commit
215216df48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue