This is a migrated thread and some comments may be shown as answers.

[Solved] Sitemap changes not updating menu

4 Answers 38 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shawn
Top achievements
Rank 1
Shawn asked on 25 Feb 2010, 08:39 PM

My sitemap is registered in the global asax and renders properly the first time. However if a change is made to the sitemap it is not reflected/refreshed in the menu?

Global.asax

    protected void Application_Start()  
        {  
            AreaRegistration.RegisterAllAreas();  
            RegisterRoutes(RouteTable.Routes);  
            SiteMapManager.SiteMaps.Register<XmlSiteMap>("Web", sitmap => sitmap.LoadFrom("~/Web.sitemap"));  
        } 


site.master

<%= Html.Telerik().Menu()  
  .Name("Web")  
  .BindTo("Web")  
  .Orientation(MenuOrientation.Vertical)              %>  
          
   <% Html.Telerik().ScriptRegistrar().Render(); %> 

 

 

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Shawn
Top achievements
Rank 1
answered on 25 Feb 2010, 10:02 PM
the sitemap appears to be cached. Is there a way to uncache the sitemap or refresh/call it? change the duration?

I restarted the web application and it grabs the updated sitemap?
0
Kazi Manzur Rashid
Telerik team
answered on 02 Mar 2010, 02:03 AM
Hello Shawn,

This has been fixed and will be available in the next update. Thanks for reporting the issue.

Greetings,
Kazi Manzur Rashid
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Shawn
Top achievements
Rank 1
answered on 10 Mar 2010, 05:29 PM
I have implemented the latest update/build "March 9th" and it still appears to be caching the sitemap items for an extremely long time.

Is the duration a know constant?  Is there a way to flush the cache?

thanks
S

0
Kazi Manzur Rashid
Telerik team
answered on 11 Mar 2010, 08:46 AM
Hi Shawn,

The default duration is 60 minutes. You can change the xml sitemap cache duration by specifying it in the root node:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap cacheDurationInMinutes="10">
....
....
</siteMap>


Regards,
Kazi Manzur Rashid
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Shawn
Top achievements
Rank 1
Answers by
Shawn
Top achievements
Rank 1
Kazi Manzur Rashid
Telerik team
Share this question
or