Enable Dependency Mode for Navigations on DSS 10.x and 9.5+
Enable Dependency Mode for DSS version 10.x and 9.5+. For navigation building, this mode can help to improve processing and startup times after publish. With Dependency Mode enabled, navigation cache files will be checked for updates at regular intervals. Navigations will still be built if the navigation cache files are not present.
Description
In some site implementations, navigations are built by a third-party system rather than Ingeniux Dynamic Site Server. In these cases, enabling Dependency Mode can be useful to help cut down navigation processing and allow for faster page requests after a publish.
You can enable this mode by configuring the DependencyMode setting in the DSS Web.config configuration file. You can also configure the DependencyModeNavCacheDuration setting to determine how frequently the system checks for updates to the navigation cache files.
- Only follow the procedures described in this article if you have been directed to do so by Ingeniux Support.
- For Dependency Mode to work as intended, a pre-generated set of navigation cache files for the DSS site content must be in place (stored in the App_Data\NavigationCaches folder).
- With these settings enabled, navigations will still be built if the navigation cache files are not present. If the files have not been updated within the specified navigation cache duration, then they will be rebuilt.
- Dependency Mode does not affect link elements.
Requirements
CMS 10.x or CMS 9.5+ must be installed for your DSS version.
Step-by-Step
- Navigate to your DSS site's root folder and open Web.config in a text editor.
- Under the
<appSettings>
element, if not already present, add the following elements:- Insert the
<add>
element with the@key="DependencyMode"
and@value="true"
attributes to enable the DependencyMode setting. - Optional: You can insert the
<add>
element with the@key="DependencyModeNavCacheDuration"
and@value
attributes to determine how frequently, in seconds, the system checks for navigation cache file updates.If the files have not been updated within the specified duration, then the system will rebuild them.
NoteIf you do not specify this setting, the system will automatically check the navigation cache files for updates every 60 seconds.
If the files have not been updated in the past 60 seconds, they will be rebuilt.
For example, your code will look similar to the following:
<add key="DependencyMode" value="true" /> <!-- The duration of checking for navigation cache on disk in dependency mode --> <add key="DependencyModeNavCacheDuration" value="60" />
- Insert the
- Save and close Web.config when you finish your changes.
Additional Information
If you have questions, contact Ingeniux Support.
There are no comments yet.