#15545 closed defect (fixed)
WMTS GetCapabilities not always refreshed
Reported by: | ff5722 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 17.11 |
Component: | Core imagery | Version: | |
Keywords: | template_report wmts capabilities cache | Cc: |
Description
What steps will reproduce the problem?
- Request GetCapabilites for WMTS imagery source
- Add a new layer to the WMTS source
- Request GetCapabilites file again
What is the expected result?
The new layer should be in the WMTS layer list
What happens instead?
The GetCapabilities file seems to be cached and cannot be refreshed manually
Please provide any additional information below. Attach a screenshot if possible.
See attached screenrecording
My WMTS source is locally hosted using WAMPserver and tileserver-php and the tilesets are generated using the Qtiles plugin for Qgis as described here: https://wiki.openstreetmap.org/wiki/User:Ff5722/How_to_create_and_host_tilesets_from_GeoTIFF_images
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-10-29 19:52:48 +0100 (Sun, 29 Oct 2017) Build-Date:2017-10-29 19:11:19 Revision:13053 Relative:URL: ^/trunk Identification: JOSM/1.5 (13053 en) Windows 10 64-Bit OS Build number: Windows 10 Home 1703 (15063) Memory Usage: 247 MB / 989 MB (127 MB allocated, but free) Java version: 1.8.0_151-b12, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1920x1080 Maximum Screen Size: 1920x1080 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=E:\Box Sync\Desktop\josm.jnlp, -Djnlpx.remove=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=256m,1024m, -Djnlpx.splashport=58647, -Djnlpx.jvm=<java.home>\bin\javaw.exe] Plugins: + FastDraw (33731) + ImportImagePlugin (33563) + Mapillary (v1.5.8) + PicLayer (33385) + apache-commons (33668) + apache-http (32699) + buildings_tools (33735) + ejml (32680) + ext_tools (33698) + geojson (66) + geotools (33380) + importvec (33564) + jogl (1.1.0) + jts (32699) + kendzi3d-resources (0.0.1) + log4j (32699) + opendata (33617) + reverter (33572) + utilsplugin2 (33742) Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools.
Attachments (1)
Change History (7)
by , 7 years ago
Attachment: | Recording #6.mp4 added |
---|
comment:2 by , 7 years ago
Component: | Core → Core imagery |
---|---|
Keywords: | wmys capabilities cache added |
comment:3 by , 7 years ago
Keywords: | wmts added; wmys removed |
---|
comment:4 by , 7 years ago
Indeed there's a non customizable cache of 7 days in WMTSTileSource
:
private Collection<Layer> getCapabilities() throws IOException { try (CachedFile cf = new CachedFile(baseUrl); InputStream in = cf.setHttpHeaders(headers). setMaxAge(7 * CachedFile.DAYS). setCachingStrategy(CachedFile.CachingStrategy.IfModifiedSince). getInputStream()) {
comment:6 by , 7 years ago
Milestone: | → 17.11 |
---|
This is how my GetCapabilities xml looks like.