Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to enable persistent caching on WMTS capabilities URL

See original GitHub issue


We are using the WmtsParser to recover available WMTS Tile Sources. However it seems impossible to enable persistent caching on a selected tilesource, since you can’t provide a persitent cache object with the parser.

var tileSources = WmtsParser.Parse(httpClient.GetStreamAsync(addr).Result);

Do you have any advice on getting this done?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

pauldendulkcommented, Jun 7, 2020

Simply made PersistentCache settable. Had to remove the internal TileProvider. Released as 2.2.0.

pauldendulkcommented, May 29, 2020

Just a thought: Maybe an alternative could be to add an optional callback function to the parser that could provide a IPersistantCache object given a certain URL, Scheme, Layername or other Identifier for each TileSource?

I just tried to envision how that would work. One thing that you see a lot in .net core is build options like these. I thought they could maybe be used here. That would be possible but this specific case makes it a step harder because you have to find a solution to deal with multiple tilesources. This will be hard to understand for users. So I now think we should just make the PersistenCache settable. I have to think about removing the TileProvider from the HttpTileSource.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Caching defaults — GeoServer 2.21.x User Manual
Enables the Web Map Tiled Service (WMTS) endpoint in GeoWebCache. When this setting is enabled, GeoWebCache will respond to its own WMTS endpoint:...
Read more >
GeoServer not caching tiles when using WMS with Direct ...
I opted to call the cache using WMTS. If the tiles are not in the cache then GeoWebCache generates them on the fly...
Read more >
Tiles are not caching after enabling Tile cache for WMTS in ...
1. Check if the specified folder has writing permission. · 2. Clear the cache and try to restart the machine · 3. If...
Read more >
WMTS Capabilities (Map Service)—ArcGIS REST APIs
An individual WMTS Capabilities (Service Metadata) resource allows WMTS clients to retrieve service metadata for this tiled map service.
Read more >
How to enable persistent object caching?
You can enable Object Caching in Performance>General settings. Please check the screenshot. However, I would advise using Redis as a caching method for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found