[josm-dev] caching

Martin Koppenhoefer dieterdreist at gmail.com
Fri Dec 6 12:33:52 UTC 2013


 I was recently looking for the cache settings (WMS) because of a
discussion on the national ML, and have found this in the wiki:
###
http://josm.openstreetmap.de/wiki/Help/Menu/Imagery

To reuse the tiles over JOSM sessions without having the reload them from
the server, right click on the WMS layer and set a bookmark. During the
next session, select the new WMS created by the bookmark in the WMS memu.
Additionally, you may want to modify the following values in the
preferences :

   - cache.wmsplugin.expire -1 : this is a time in second until the tiles
   are invalidated. -1 means "never flush".
   - cache.wmsplugin.maxsize 999999999 : maximal size of the cache
   (probably in MB)

Even though you have to download an area "manually", you can work offline
using this technique.
###


now looking into my advanced preferences I don't have these keys (visible),
but there are a bunch of others:

cache.bing.attribution.xml  =  1386019732

cache.capabilities-131030235  =  1386019732
cache.folder  =  <unset>
cache.geoimage-thumbnails.expire  = -1
cache.geoimage-thumbnails.maxsize  = 120
cache.motd.html  =  1386331843
cache.motd.html.java  =  1.7.0_45
cache.motd.html.lang   =  En:
cache.motd.html.version  =  6442

and also these:
imagery.tms.tilecache_path  =
/var/folders/lr/yk1xc0j175vcx5bm0r1jg7g00000gq/T/JMapViewerTiles_martin

I have also found that I have apparently a lot of cached data on disk :
$ du -hc ~/.josm/cache/wms/
 49M    /Users/martin/.josm/cache/wms//1/epsg4326
2,7G    /Users/martin/.josm/cache/wms//1/mercator
2,7G    /Users/martin/.josm/cache/wms//1
 90M    /Users/martin/.josm/cache/wms//2/mercator
 90M    /Users/martin/.josm/cache/wms//2
880K    /Users/martin/.josm/cache/wms//3/mercator
900K    /Users/martin/.josm/cache/wms//3
4,1M    /Users/martin/.josm/cache/wms//4/mercator
4,1M    /Users/martin/.josm/cache/wms//4
4,0K    /Users/martin/.josm/cache/wms//5
2,8G    /Users/martin/.josm/cache/wms/
2,8G    total


Now my questions: have there been changes to the caching mechanism (WMS and
TMS). Do I have to set something in order to enable caching? And finally:
is there an advanced setting to disable "auto change resolution" for wms
layers?


cheers,
Martin


More information about the josm-dev mailing list