Opened 6 years ago

Last modified 4 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 's
per-map <update-delay> tag.

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

comment:2 by jidanni, 6 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
Say if it overrides those tags and which.

comment:3 by jidanni, 6 years ago

Description: modified (diff)

comment:4 by Don-vip, 6 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, 4 years ago

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

comment:5 by simon04, 4 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
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.