[Tile-serving] [osm2pgsql-dev/osm2pgsql] Fix: Always disable expiry if maxzoom==0 (PR #2424)
Jochen Topf
notifications at github.com
Mon Oct 27 10:34:31 UTC 2025
maxzoom==0 is the default setting and it is documented to means that there is no expire. That's what the enabled() function checks.
But disabling this in from_bbox() only disabled the expire for that case, not for linestrings. Better to do this check in the function that's called from outside the expire code: from_geometry().
We also need to fix some tests that were using maxzoom==0 by changing their setting to use maxzoom==1.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2424
-- Commit Summary --
* Fix: Always disable expiry if maxzoom==0
-- File Changes --
M src/expire-tiles.cpp (8)
M tests/bdd/flex/expire.feature (6)
M tests/data/test_expire.lua (2)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2424.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2424.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2424
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2424 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20251027/0c052482/attachment.htm>
More information about the Tile-serving
mailing list