Controlling cache operationsUse Profiles administrative commands to control the operation of the full report-to chain cache without having to stop and start the Profiles server.
Before you begin
To run administrative commands, use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
About this task
Profiles uses an in-memory cache to support the organizational structure view available in every profile – the full report-to chain cache. Profiles uses an in-memory cache to support the organizational structure view available in every profile – the full report-to chain cache. You can use this procedure to change the behavior of the cache at runtime. However, the changes that you make using this procedure are not permanently stored. You must change the configuration settings in the profiles-config.xml file to change the behavior permanently because the changes you make here will be overwritten by the settings in the configuration file the next time you stop and restart the server. See Configure the full reports-to cache for details. Only use these steps to immediately effect the behavior of the organizational structure cache without having to stop and restart the server.If this cache is disabled, the reporting structure information is still available, but it displays more slowly.
To control cache operations for Profiles...
- From the dmgr host:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.
- Use the following commands to control cache operations.
ProfilesService.enableFullReportsToCache(startDelay, interval, schedTime)
Enables the full report-to chain cache with the specified start delay in minutes, refresh interval in minutes, and scheduled refresh time in HH:MM format.
This cache is used to populate the full report-to chain view available in a user's 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.
For example:ProfilesService.enableFullReportsToCache(5, 15, "23:00")
Disables the full report-to chain cache capability. This command does not take any arguments.
Forces a reload of the full report-to chain cache from the Profiles database. This command does not take any arguments.
Note: If the full report-to cache is disabled, it cannot be reloaded. This command fails when the cache is disabled.
Parent topicAdminister cache
December 9, 2011
Dec 9, 2011 4:47:37 PM Added note about this being temporary to About this task section. 2 Dec 9, 2011 4:45:52 PM Updated short description with info about restarting server and replac... 1