Modify

Opened 7 years ago

Last modified 5 years ago

#16000 new enhancement

Allow per-map setting of imagery.generic.*_expires

Reported by: jidanni Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: tms cache Cc:

Description (last modified by jidanni)

Please allow per-map setting of imagery.generic.*_expires.

Otherwise even if just one map on one site needs a different setting,
not only all the maps on that site are forced to use it,
every map on every site is too.

Compare
http://www.offline-maps.net/en/help/maps/stored/custom#advanced_example 's
per-map <update-delay> tag.

Attachments (1)

2020-05-16-222246.png (52.4 KB ) - added by simon04 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:2 by jidanni, 7 years ago

P.S., imagery.generic.minimum_expires has no documentation yet.
When creating the documentation do mention how it interacts with the tags servers send. E.g., as seen in
https://help.openstreetmap.org/questions/62203/how-to-change-josm-imagerygenericminimum_expires-but-just-for-one-imagery
Say if it overrides those tags and which.

comment:3 by jidanni, 7 years ago

Description: modified (diff)

comment:4 by Don-vip, 7 years ago

Keywords: tms cache added

For future reference:

/**
 * Class bridging TMS requests to JCS cache requests
 *
 * @author Wiktor Niesiobędzki
 * @since 8168
 */
public class TMSCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, BufferedImageCacheEntry> implements TileJob, ICachedLoaderListener {
    private static final LongProperty MAXIMUM_EXPIRES = new LongProperty("imagery.generic.maximum_expires", TimeUnit.DAYS.toMillis(30));
    private static final LongProperty MINIMUM_EXPIRES = new LongProperty("imagery.generic.minimum_expires", TimeUnit.HOURS.toMillis(1));

by simon04, 5 years ago

Attachment: 2020-05-16-222246.png added

comment:5 by simon04, 5 years ago

Setting a custom minimumTileExpire for one imagery entry is already possible thanks to r13733:


Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to jidanni.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.