The Registry cache: Flushing and Enabling / Disabling
The permissions of all groups and users in the system are specified in the EMu Registry and this information is stored on the EMu server. The Registry must be consulted each time the EMu client needs to determine whether a user is permitted to perform a given operation. As EMu provides a sophisticated security module the Registry may be accessed heavily for certain operations (starting a new module for example). In order to reduce the time required to query the Registry, the EMu client has a Registry cache. The cache is a mechanism that remembers what permissions have been asked for and the associated response. If the same question is asked again, the answer can be given without the need to access the EMu server. The Registry cache reduces traffic to the EMu server and improves the responsiveness of the EMu client.
The one disadvantage of using a cache is that changes made to the EMu Registry will not be picked up until either the cache is cleared (flushed) or you log out and log back in again. For example, if you are using EMu and have been producing reports from the Parties module, and another user adds a new report to the Parties module, you will not see the report listed until you log out and log back in again, or until you flush the cache.
In practice this tends not to be a serious issue and the speed gains more than outweigh any inconvenience. However, it may occasionally be necessary to clear the Registry cache.
- Select File>Options from the Ribbon of any open module to display the Options box.
- Select the General tab.
- Click Clear Cache.
- Click OK.
A message displays once the cache is empty.
Flushing the cache removes all Registry responses stored in the EMu client. Next time a Registry question is raised, the EMu client will contact the server for a response and the response will be added to the cache again.
- Select File>Options from the Ribbon in any open module to display the Options box.
- Select the General tab.
- Tick / un-tick the Cache Registry Lookups checkbox to enable / disable the Registry cache.
- Click OK.
If the Registry cache is disabled, it is flushed silently as its entries can no longer be used.
Disabling the Registry cache will cause the EMu client to run slower as all Registry queries must be answered by the server. The only useful purpose achieved by disabling the cache is to test the effect changing Registry entries has on a module, without the need to flush the Registry cache. In day to day use, the cache should be enabled.