camptocamp / ogc-client

A TypeScript library for interacting with geospatial services
https://camptocamp.github.io/ogc-client/
BSD 3-Clause "New" or "Revised" License
66 stars 12 forks source link

Clearing cache #74

Closed vprintempsPei closed 1 month ago

vprintempsPei commented 1 month ago

Hello, Is it possible to clear the cache ? I don't see a relative methods in the docs.

jahow commented 1 month ago

No but we could add a function for that. What you can do is reduce the cache duration to 0, that should clear out all entries.

vprintempsPei commented 1 month ago

Well if it's possible to add a function to do that it's would be great ! If you don't have time can you tells me were should i look in the source code to add this function ?

jahow commented 1 month ago

This should work now with clearCache, please let me know if that was enough!

vprint commented 1 month ago

I tested it and it works fine for WMTS. Thanks