PreloadCache function
Syntax
PreloadCache(mgrNames, dirPath, delete_dir, Lang_list)
Description
Use the PreloadCache function to load a list of manager names to a specified directory.
Note:
Use the PreloadCache function only in AE programs.
Parameters
| Parameter | Description |
|---|---|
|
mgrNames |
Specify the list of manager names to be loaded to cache as an array of strings. Note: You can use the AE program LOADCACHE to get the most up-to-date list of managers. |
|
dirPath |
Specify an absolute path for the location of the preload cache directory. Specify the string <<DBCACHE>> to load database cache instead of file cache. For more information on shared file cache or database cache, see System and Server Administration: Load Application Server Cache, Loading Shared File Cache or Database Cache. |
|
delete_dir |
Specify a Boolean value: Specify True to clear existing preload cache files from the cache-loading output directory; specify False to add to the existing preload cache files in the cache-loading output directory. The cache-loading directory is either the directory specified in the second parameter (dirPath) or in most cases, it is the PS_CFG_HOME\appserv\prcs\ProcessScheduler_domain\CACHE\CACHE\STAGE\stage directory. |
|
Lang_list |
This is an optional parameter. Specify a list of language codes to be used when loading cache files as an array of strings. If this parameter is not specified, then the files are loaded for all installed languages. |
Returns
A Boolean value: True if the files are cached successfully, False otherwise.
Example
&ret = PreloadCache(&array_MgrName, &dirPath, /* purge existing cache = */ False, &array_Languages);