Opened 16 years ago
Closed 15 years ago
#1906 closed enhancement (fixed)
[Patch?] WMS-Plugin: Implement caching
Reported by: | stoecker | Owned by: | framm |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Plugin | Version: | |
Keywords: | Cc: |
Description
The WMS plugin should cache the downloaded pictures.
Attachments (1)
Change History (7)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
What should the caching policy be? keep no more than a given size? keep no more than a given count? keep no longer than a certain time?
comment:3 by , 16 years ago
I would suggest size and time. So
if older than xxx --> delete
if more than xxx bytes --> delete oldest
I think lakewalker uses same strategy.
comment:4 by , 15 years ago
Summary: | WMS-Plugin: Implement caching → [Patch?] WMS-Plugin: Implement caching |
---|
This is a simple cache class that encapsulates image getting and saving. The grabber needs to invoke it manually by passing an (unique) identifier. It automatically discards old files but it doesn't clean up automatically.
Default values are 40 MBytes or older 5 days, whichever comes first. Can be overwritten though using wmsplugin.cache.size (in Bytes) and wmsplugin.cache.expire (in ms). I've tested it and it speeds up displaying if an image is cached (well, that was expected) but unfortunately doesn't help with the "Oberpfalz Performance" and I have no idea why.
comment:5 by , 15 years ago
The display performance could probably be increased a lot when the current display is buffered. I think ATM every operation is done for each refresh (i.e. aligning pics, converting pics, scaling pics, ...). All of this is useless overhead when nothing changed. See #1954.
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Applied but not yet uploaded as plugin.
Lakewalker already has code which does tile caching.