ThinkGeo.com    |     Documentation    |     Premium Support

Feature Request for ServerCache

Hello,


I find the ServerCache feature of Map Suite very effective and very easy to use. It increases the responsiveness of the web site immensely with just a single line of code.


Right now, it can only be turned on or off. I think, it would be better to have the option to enable cache image creation and usage independently.


It could be something like the following :


LayerOverlay.ServerCache.CacheDirectory : Would also set EnableWrite = true, EnableRead = true

LayerOverlay.ServerCache.EnableWrite : Create cache images when necessary

LayerOverlay.ServerCache.EnableRead : Use cache images if they exist


For example, I could show the images for the first 4 zoom levels from cache and render the rest dynamically.


What I would do is for preparation :


1) Set CacheDirectory

2) Create the cache images for the first 4 levels using GenerateCacheImages.


To use :

1) Set CacheDirectory

2) Set EnableWrite = false, EnableRead = true


So, I could create a balance between hard disk usage and processing load.


What do you think ?


Hakan Çelik


 



Hakan, 
  
 I think that’s a good idea. Your method will work great if most of time I am within the first 4 zoom levels and just need to zoom to other zoom levels occasionally. I’ve add this idea to our tracking system and will discuss how we will implement it. Besides that, maybe there are some other properties like Duration, ImageFormat which we can also include, we will have a discussion about them too. 
  
 Thanks for pointing it out! 
  
 Ben