HyperWorks Desktop

ALTAIR_CACHE_HOME

ALTAIR_CACHE_HOME

Previous topic Next topic No expanding text in this topic  

ALTAIR_CACHE_HOME

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


ALTAIR_CACHE_HOME – Sets path to a cache location for speedier invoke launch times for a server to client HyperWorks setup.

 

SYNTAX


ALTAIR_CACHE_HOME path to cache file storage location

 

TYPE


Environment variable

 

DESCRIPTION


This variable should only be used with a server to client setup of HyperWorks which allows for the graphical user interface applications, e.g. HyperMesh and HyperWorks Desktop, to cache files onto a client’s machine for speedier invoke launch times. This functionality is only available on Windows and Linux operating systems.

The cache is versioned and the client user should maintain the necessary files.

NOTE: Default behavior of a server to client HyperWorks setup does not cache any files.

 

Criteria:

1.Client user will need to have enough disk space allocated for the cache, which is approximately 120 MB to 150 MB of storage.
2.Client user will need to have write access to the disk location set by the ALTAIR_CACHE_HOME variable
3.Client user will be responsible for adding the variables in the working environment to turn on this functionality – default settings has this option turned off.
4.Client user is responsible for deleting these cached files when no longer needed.

 

Recommended Settings:

Client user should use a local disk on the client machine for the cache directory for best performance.

 

EXAMPLE


1.To enable this new feature set the environmental variable ALTAIR_CACHE_HOME to a directory, E.g. ALTAIR_CACHE_HOME=%USERPROFILE%\cache
2.The first launch of the application will check to see if the variable is set and will enable the caching and copy over all required files under the directory specified through a background process after the products initialize. There will not be any decrease in launch seen in this first time launch.
3.Once this is done, the next invoking iterations will see the variable set and check the location directory for the versioned files and source them instead of doing a source from over the network.

 

ADDITIONAL OPERATIONS/FUNCTIONALITY


 Batch mode options available for creating cache:

hw_cachemgr    -query | -create | -delete [-silent]

-query: Display a message if the cache is ready for use. Always returns zero.

-create: Create the cache if it is not being deleted. Returns zero if successful.

-delete: Delete the cache if it is not being used. Returns zero if successful.

-silent: Do not display messages.

 

2.Debug logs for caching mechanism can be set using the ALTAIR_CACHE_LOG a path or file 

 Example setup:

ALTAIR_CACHE_LOG=%USERPROFILE%\cache\debug_log.txt