mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 01:07:29 +08:00
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
|
mmdb_time ||= backup_mmdb_time
|
||||||
if backup_mmdb_time && backup_mmdb_time >= mmdb_time
|
if backup_mmdb_time && backup_mmdb_time >= mmdb_time
|
||||||
copy_maxmind(GlobalSetting.maxmind_backup_path, DiscourseIpInfo.path)
|
copy_maxmind(GlobalSetting.maxmind_backup_path, DiscourseIpInfo.path)
|
||||||
|
mmdb_time = backup_mmdb_time
|
||||||
end
|
end
|
||||||
|
|
||||||
if !mmdb_time || mmdb_time < refresh_days.days.ago
|
if !mmdb_time || mmdb_time < refresh_days.days.ago
|
||||||
|
|
Loading…
Reference in New Issue
Block a user