Show TOC

Configuring the Navigation CacheLocate this document in the navigation structure

Use

The following services provide additional capabilities when administering the navigation cache:

  • CacheCleanerService

    Clears the navigation cache at set intervals

  • CacheLearningMechanismService

    Records navigation activities in your portal and stores cache-related properties

You configure these services in SAP NetWeaver Administrator. For information about accessing services in SAP NetWeaver Administrator, see Accessing Portal Services in SAP NetWeaver Administrator .

Note

Make sure that you restart services after making changes.

Procedure

Clearing the Cache at Set Intervals

You set the CacheCleanerService to automatically clear the navigation cache at set intervals. You can clear the cache for all connectors or for specific connectors.

  1. In the Application Modules page, in the Module List area, select com.sap.portal.navigation.service .

  2. In the Web Module Details area, select CacheCleanerService .

  3. In the Portal Service Details area, set the following properties:

    • ClearCacheIntervalInDays : Set the interval (in days) for clearing the cache.

      Default value: 0

    • ListOfConnectors : List the connectors whose cache you want to clear. If no value is specified, all connectors are cleared. Separate connector names with a semicolon (;).

      Default value: ROLES

By default, this service starts at the same time as the portal. However, because the default interval is 0 , the connectors are not cleared unless you set a new interval.

Configuring the Learning Mechanism

The navigation cache loads a predefined set of attributes for each node. If some of your content has an additional set of attributes for some of its nodes, these additional attributes require an additional lookup. The cache learning mechanism gathers requests to these attributes, checks the frequency at which they are requested, and if the frequency is over a specified threshold, adds these attributes to the cache for every node. By default, the learning mechanism runs once a month over a period of two days.

  1. In the Application Modules page, in the Module List area, select com.sap.portal.navigation.service .

  2. In the Web Module Details area, select CacheLearningMechanismService .

  3. In the Portal Service Details area, set the following properties:

    • LearningEnabled : To enable the navigation cache learning service, change this property to true .

    • MinimumPercentageOfPropertyRequestsForLearning : The percentage of the most-requested property, above which other properties will be saved in the cache. For example, if this property is set to 25 , and the attribute Title , which is the property that is requested most often, is called 100 times, properties that are called 25 times or more will be saved in the cache.

    • UpdatePCDInMinutes : The list of properties is saved to the PCD. While the learning mechanism is running, this property defines the interval after which properties are saved to the PCD.

    • LearningDurationInDays : The number of days during which the learning mechanism runs.

    • LearningSleepTimeInDays : The number of days that the learning mechanism is inactive between activations.