Configuring the full reports-to cache
The full reports-to cache is one of the two in-memory caches used by Profiles to support the organizational structure views.
Before you begin
To edit configuration files, you must use the IBM® WebSphere® Application Server wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
About this task
The other in-memory cache is the object cache, which caches auxiliary table information, including department, organization, work location, employee type, and country code display values.
The full reports-to cache is used to populate the full reports-to chain view available in a profile. The cache contains the specified number of top employees in the organizational pyramid. It is not intended to store an entry for each profile; it stores the profiles of those people at the top of the chain who are included in many full report-to chain views.When you use this procedure to change the default behavior of the cache, it changes the behavior permanently, but requires a server restart. If you want to change the cache behavior in a production environment without having to disrupt service, see Controlling cache operations. But, any changes you make to the runtime cache are overwritten by the setting in the configuration file when the server next restarts.
Procedure
- Start the wsadmin client from the following
directory of the system on which you installed the Deployment Manager:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root\profiles\dm_profile_root\bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client.
- Start the Profiles Jython script interpreter.
- To configure the full reports-to cache, use the following
command:
ProfilesConfigService.updateConfig(property, value)
where- property is one of the editable Profiles configuration properties.
- value is the new value with which you want to set that property.
The following table displays information regarding the properties that you can configure for the full reports-to chain cache, and the type of data that you can enter for them.
Table 1. Full reports-to chain cache properties Option Description fullReportsToChainCache.enabled Enables or disables the full reports-to cache. This property takes a Boolean value: true or false. The value must be formatted in lowercase.
fullReportsToChainCache.ceouid The corporate directory user ID of the person who will appear at the top of the organizational structure. This property takes a UID value.
fullReportsToChainCache.size The number of employee entries that should be loaded into the cache. This property takes an integer value.
fullReportsToChainCache.refreshTime Determines the time of day in 24-hour time format that Profiles performs the first scheduled reloading of the cache. The property value must be expressed in hours and minutes using this formatting: HH:MM.
fullReportsToChainCache.refreshInterval The time in minutes between cache reload operations. This property takes an integer value.
fullReportsToChainCache.startDelay The time in minutes that Profiles should wait after starting before loading the cache for the first time. This property takes an integer value.
For example, to disable the cache, enter:
ProfilesConfigService.updateConfig("fullReportsToChainCache.enabled","false")
- After making changes, you must check the configuration files back in, and you must do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying property changes in Profiles for information about how to save and apply your changes.