Cache per-country Geofabrik extracts so Apply doesn't redownload everything

Every region-selection change re-downloaded every selected country's
.osm.pbf from scratch, even ones already fetched by a prior build —
painful for multi-GB countries. Extracts now persist in
data/geofabrik_cache/, keyed by country, and are only re-fetched when
Geofabrik's Last-Modified for that country actually moved on (checked
with a cheap HEAD) or the file isn't cached yet.
This commit is contained in:
randy committed 2026-09-11 22:52:16 +02:00
1 parent 077b44ece1
commit 007dee7341
4 files changed
+131 -17

No files matched your search

+4
View File
@@ -12,6 +12,10 @@
# see docs/development.adoc)
/data/*.pmtiles
# Per-country .osm.pbf cache for offline.pmtiles rebuilds (also large,
# also local-only — see PmtilesBuilder.cached_extract)
/data/geofabrik_cache/
# Offline Wikipedia ZIM for kiwix-serve (also large, also local-only —
# same story, see docs/development.adoc)
/data/kiwix/*