Hi, Andreas,

Thank you very much for your advise.
I downloaded the 1.5rc1 version and notice the cache issue has been
addressed, but my acetate layer function is not working now.  I made this
transparent GIf acetate layer to mark a cross on the map, and user can
re-locate the cross by clicking the map, I forced the map to refresh to load
new cross after clicking this way:

 var scale = config.objects.mainMap.map.getScale() ;
 config.objects.mainMap.map.zoomToScale(scale) ;

This doesn't seem to work with 1.5rc1, and is there a way to just refresh
this 1 image instead of the whole map?

Many thanks again.

Huaining

Andreas Hocevar-2 wrote:
> 
> Hi,
> 
> hzhu wrote:
>> I tested MapBuilder 1.5 alpha for half year and really like it.  One
>> thing
>> bothers me is you have to clear cache/cookies all the time, like in IE,
>> you
>> have to go to "Tools" >>"Internet Options ...", and in Firefox, you have
>> to
>> go to "Tools" >> "Clear private data..." to clear the cache and cookies.
>> Otherwise, you will get client-side errors like "Sarissa is not
>> loaded..."
>>   
> 
> The behaviour you are describing was a known issue of MapBuilder 
> 1.5alpha1 on Internet Explorer, and it has since been fixed. MapBuilder 
> 1.5rc1 does not have this problem any more. So I suggest that you 
> upgrade your MapBuilder installation.
> 
>> I added more functions like transparent gif acetate layers on top of the
>> base map. I think this might add overhead to the cache, and I understand
>> Openlayer need quite some cache resource to get the "Drag-Panning" to
>> work. 
>> Is there a way to make cache more efficient, or do I need to write code
>> to
>> clear cache automatically instead of asking user to clean up all the
>> time.
>>   
> 
> Do you want to clear the cache just because of the (meanwhile fixed) 
> Sarissa issue, or do you want to refresh WMS layers because the data has 
> changed? Also, the available cache size is determined by your browser 
> cache settings. Firefox 2 is known to need much memory for cacheing 
> images, but Firefox 3 will not any more. If you do not want to have 
> images cached, you can use "WMS" instead of "WMS-C" as layer type. Also, 
> if you have many layers, it might make sense to get them from the server 
> in one piece (e.g. if it is just background data). You can have a 
> comma-separated list of layer names in the layer's <Name> properties in 
> the context xml.
> 
> Regards,
> Andreas.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Clear-cache-cookies-all-the-time-tp15445351p15483244.html
Sent from the MapBuilder Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to