Ticket T290230
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

There is no capability to clear the in-memory tile cache at runtime

How to force clear ImgeTile Cache ?

created 9 years ago

I Have a large amount of data which had to the be overplayed on the map control. Since the topical data set consists of around 560 000 poly lines I have resulted in using Tiles to display the data so the map control doesn't slow down.

The problem I have is that since the user of the application is allowed to change the data which is used to generate the tiles I have be able to update loaded tiles or to force reload tiles.

At the present state the map control uses some internal chance for the tiles which results in :

if you move around the map while changing the data - some tiles are new and update some have old data present.
if you zoom out load old tiles if zoom in load the new tiles.

from the cache options i see that i can specify a folder but that doesn't effect the internal cached  tiles which are used in the above scenarios.

is there a way to do the following:

Force reload on image tiles on specific layer (I have 2 the Bing map, and my custom one). The closes i have become to this effect  was to move map center point so it requested some of the new tiles by some old(cached ones were used).

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Hi Ivan,

While there is no special method to reload all cached tiles at once, it is possible to temporarily minimize the CacheOptions.KeepInterval property value. In this case, tiles will be reloaded from a map data provider. Let us know if you find this approach appropriate.

    Show previous comments (5)
    DevExpress Support Team 9 years ago

      In this case, it is better to completely disable the caching option by removing the CacheOptions definition from XAML markup. This should force loading actual tile images instead of cached ones.

      IP IP
      Ivan Petrov 33 9 years ago

        But this is why I posted the question  I didn't have the caching definition in XAML and it still cached tiles, so I posted to ask how to force refresh them. I added the tag per your suggestion but  CacheOptions.KeepInterval is not doing what i wanted so I have removed it. It looks like the map control has a internal cache scheme and its keeping tiles even though there no caching options specified.

        DevExpress Support Team 9 years ago

          Thank you for your clarification. There is also a special in-memory tiles cache that cannot be reset using the public MapControl API. Having discussed this issue, we decided to provide a special method to accomplish this task. I have registered a separate ticket in this regard:

          There is no capability to clear the in-memory tile cache at runtime.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.