I have created a custom sitemap provider component by inheriting from
StaticSiteMapProvider. As per my requirement, I have a custom list at the Root Site that stores the navigation information. In my custom provider, I implemented
BuildSiteMap() in such a way that it uses my custom list to create
I just followed the technique mentioned
Now the issue is, I want to recreate the site map each time an item is added to my custom list (where I store navigation information). I don't want
BuildSiteMap() method to be executed completely every time a page request arrives because it uses SharePoint object model to access the list data and this will affect the performance. As mentioned in the article, within
BuildSitemap() method, I am checking whether site map is created already and if yes I am skipping the call to SharPoint list items.
But with that approach, it looks like the site map is created with first request to the site and for all other requests, it is being served from the cache (or persistant storage). Right now I have to use IISRESET to get my site map recreated after adding
an item to the List.
I have following questions regarding the StaticSiteMapProvider
Once created, where is the site map stored? How I can reset or clear already created site
View Complete Post