Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13795 closed enhancement (fixed)

Can't flush cache with local TMS layer

Reported by: naoliv Owned by: wiktorn
Priority: normal Milestone: 16.10
Component: Core imagery Version:
Keywords: Cc:


I am doing some tests with a local TMS layer (tms[18]:file:///path/{zoom}/{x}/{y}.png) and I was noticing that it's not possible to flush its cache (the menu option is disabled).

It's a little problematic, because when I recreate the tiles I see places like this:

Old style in some areas, new style in other areas.

And it's necessary to remove the layer and add it again to have all the tiles reloaded.

1) Couldn't we have the flush cache option enabled for cases like this? (so a single click on flush would reload all the tiles again)

2) Is it possible to see if the local files were modified after they were loaded and, if yes, reload them? (something similar with inotify in Java)


Build-Date:2016-10-12 21:30:35

Identification: JOSM/1.5 (11124 SVN pt_BR) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 687 MB / 10206 MB (221 MB allocated, but free)
Java version: 1.8.0_102-8u102-b14.1-2-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900, :0.1 1280x1024
Maximum Screen Size: 1600x1024
Java package: openjdk-8-jre:amd64-8u102-b14.1-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-9
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

+ Create_grid_of_ways (32699)
+ ImportImagePlugin (32699)
+ OpeningHoursEditor (32699)
+ PicLayer (32796)
+ RoadSigns (32796)
+ SimplifyArea (32796)
+ apache-commons (32699)
+ buildings_tools (32944)
+ conflation (0.3.0)
+ contourmerge (1022)
+ download_along (32946)
+ editgpx (32699)
+ ejml (32680)
+ geojson (43)
+ geotools (32813)
+ importvec (32699)
+ indoorhelper (32680)
+ jts (32699)
+ log4j (32699)
+ measurement (32936)
+ merge-overlap (32699)
+ opendata (32898)
+ pbf (32865)
+ pdfimport (32796)
+ poly (32699)
+ reverter (32796)
+ scripting (30760)
+ tageditor (33021)
+ todo (30000)
+ turnlanes (32796)
+ turnlanes-tagging (252)
+ turnrestrictions (32796)
+ undelete (32699)
+ utilsplugin2 (32815)

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by wiktorn

Cc: wiktorn removed
Owner: changed from team to wiktorn
Status: newassigned

Doesn't "Load all tiles" help in this situation?

Flush tile cache is disabled as we only cache them in small memory cache, we don't use any disk cache in this case.

WatchService is a possible way to implement file change notification but I find it would introduce unnecessary complexity, given that your use case is quite specific

comment:2 Changed 5 years ago by naoliv

Load all tiles nor Load all error tiles aren't updating the tiles. I can only see all the new tiles if I remove the layer and add it back again.

Of course I am fine if suggestion 2 doesn't get implemented :-)

comment:3 Changed 5 years ago by wiktorn

Resolution: fixed
Status: assignedclosed

In 11125/josm:

Activate "Flush tile cache" menu item on file:/// TileSources

Closes: #13795

comment:4 Changed 5 years ago by simon04

Milestone: 16.10

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain wiktorn.
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.