Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10849 closed enhancement (fixed)

improve TMS imagery caching

Reported by: bastiK Owned by: team
Priority: normal Milestone: 15.03
Component: JMapViewer Version:
Keywords: Cc:

Description

Currently, the TMS caching is a little strange:

(1)

  • After first download, the offline cache will be used for 7 days.
  • From that point on, the check period is reduced to 1 day.

A check is as good as a download, so instead it should only check after another 7 days, and so on.

(2)

  • When cache is stale, and image cannot be downloaded (e.g. no network connection), it displays no tile.

Instead, the old cached image should be used. This is better than displaying nothing.

Attachments (0)

Change History (11)

comment:1 Changed 5 years ago by bastiK

Milestone: 14.12
Resolution: fixed
Status: newclosed
Type: defectenhancement

comment:2 Changed 5 years ago by Don-vip

Component: Core imageryJMapViewer

comment:3 in reply to:  description ; Changed 5 years ago by skyper

Replying to bastiK:

Currently, the TMS caching is a little strange:

(1)

  • After first download, the offline cache will be used for 7 days.
  • From that point on, the check period is reduced to 1 day.

Are these periods configurable ? I'd like to check every 24h as a check is fast but waiting seven days is quite a long time in a world of seconds or below.

comment:4 Changed 5 years ago by bastiK

In [o30850] - see ​#josm10849 - minor fixes for TMS cache handling.

comment:5 in reply to:  3 Changed 5 years ago by bastiK

Replying to skyper:

Replying to bastiK:

Currently, the TMS caching is a little strange:

(1)

  • After first download, the offline cache will be used for 7 days.
  • From that point on, the check period is reduced to 1 day.

Are these periods configurable ? I'd like to check every 24h as a check is fast but waiting seven days is quite a long time in a world of seconds or below.

7 days seems okay for aerial imagery, with update periods of one year or more. But the OSM tiles should probably be checked every day or more, as the user probably want to see their own edits on the map as soon as possible.

comment:6 Changed 5 years ago by bastiK

Resolution: fixed
Status: closedreopened

comment:7 Changed 5 years ago by Don-vip

Milestone: 14.1215.01

finish all cache-related tickets next month

comment:8 Changed 5 years ago by stoecker

Milestone: 15.0115.02

Again delayed.

comment:9 Changed 5 years ago by Don-vip

Milestone: 15.02

comment:10 Changed 5 years ago by wiktorn

Resolution: fixed
Status: reopenedclosed

Fixed within #11193

comment:11 Changed 5 years ago by bastiK

Milestone: 15.03

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.