Skip to content

A platform for community discussion. Free, open, simple.

FIX: `maxmind:refresh` does not respect `refresh_maxmind_db_during_precompile_days` (#26457)

Alan Guo Xiang Tan972db687fea6
diff --git a/lib/tasks/maxminddb.rake b/lib/tasks/maxminddb.rake
index 4e879d5c6b8..28f0a039128 100644
--- a/lib/tasks/maxminddb.rake
+++ b/lib/tasks/maxminddb.rake
@@ -34,6 +34,7 @@ def copy_maxmind(from_path, to_path)
from = File.join(from_path, "#{name}.mmdb")
to = File.join(to_path, "#{name}.mmdb")
FileUtils.cp(from, to, preserve: true)
+ FileUtils.touch(to)
end
end