Modify

Opened 2 years ago

Last modified 2 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 (0)

Change History (4)

comment:2 Changed 2 years ago by jidanni

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 Changed 2 years ago by jidanni

Description: modified (diff)

comment:4 Changed 2 years ago by Don-vip

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));

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.