Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding caching #475

noamberda opened this issue Mar 10, 2018 · 1 comment


Copy link

commented Mar 10, 2018

We are using MvcSiteMapProvider in MVC5 project. We have static sitemap, mix with Dynamic Nodes that implements IDynamicNodeProvider.

What is the best practice to use caching in this scenario? We noticed that when we turn the cache on the DynamicNodeProviders are not getting called at all. when we turn the cache off by setting MvcSiteMapProvider_CacheDuration=0 we can see performance impact asthe MVC provider keep scanning the dlls for assemblies when creating site maps.

We would like to have the static site map to be cached but the dynamic nodes to be always resolved.



This comment has been minimized.

Copy link

commented Jul 2, 2018


I suggest using a separate sitemap with the dynamic nodes. Then you can set different cache parameters as described here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.