Compartir a través de


Configure client caching in Unified Service Desk

Client caching enables you to reduce the amount of bandwidth required at the startup of the Unified Service Desk client on the call center agent’s computers, and over the lifecycle of the client application. Client caching provides a means to cache the majority of Unified Service Desk configuration data locally on the call center agent’s computer, thereby reducing the need for common data to be retrieved from the server. This capability provides a noticeable increase in the startup performance of Unified Service Desk.

Important

This feature has privacy impact because enabling client caching in Unified Service Desk leads to some of your data being stored locally on the user’s computer, which is outside the Microsoft Dynamics CRM services boundary.

In This Topic

When should you use client caching?

How client caching works

Enable client caching

Client caching store location

Push an update to clients

Disable client caching for a specific user

Force a cache reset for a specific user

When should you use client caching?

Client caching can provide a significant improvement in startup times, a reduction in overall bandwidth, and a significant reduction in queries to the CRM server for common Unified Service Desk data.

Client caching is best employed in performance testing, training, and production environments. It isn’t recommended for development environments because changes are only replicated when the control cache key is updated.

How client caching works

When you enable client caching, the following process is executed when you log on using the Unified Service Desk client application:

  1. The Options and User Settings entities are queried for the startup keys to determine if client caching is enabled.

  2. If it is enabled, resolve client cache version number and any cache modifications.

  3. If client caching is enabled and a version number is available, locate the local cache store and determine the cache version key.

    1. If cache version number is current, decrypt and load the cache store into memory.

    2. If the cache version number is incorrect, delete the cache object.

Enable client caching

  1. Sign in to Microsoft Dynamics CRM.

  2. Go to Settings > Unified Service Desk. (How do I get there?)

  3. Click Options.

  4. Click New on the command bar to create a new option.

  5. For the new option, type ClientCacheVersionNumber in the Name box, and an alphanumeric number in the Value box. The alphanumeric value is used as the cache key for Unified Service Desk.

  6. Click Save.

When the option is present and populated, Unified Service Desk will activate the client caching.

Client caching store location

When enabled, client caching stores its files in a compressed and encrypted format in the users roaming directory: %appData%\Microsoft\USD

For example, for a user called agent1 running the client application on Windows 8, the client caching files will be available at c:\Users\agent1\AppData\Roaming\Microsoft\USD.

Information in this directory can only be accessed by the user account that created it.

Push an update to clients

To push an update to all the Unified Service Desk clients, you must edit the value of the ClientCacheVersionNumber that you created earlier to a different alphanumeric value. Next time when a call center agent logs in using the Unified Service Desk client, it will detect the different value for the ClientCacheVersionNumber option key, and read all settings from the server before starting up.

Disable client caching for a specific user

At times it may be necessary to exclude some users from client caching such as limited testing of new configurations in production, production, or troubleshooting where a cache problem is suspected, or the need to do rapid updates to a configuration where you want to revert your changes back to the currently cached objects.

  1. Sign in to Microsoft Dynamics CRM.

  2. Go to Settings > Unified Service Desk. (How do I get there?)

  3. Click User Settings.

  4. Click New on the command bar to create a new setting.

  5. On the New User Setting page:

    1. In the User field, type or select the name of the user for which you want to disable client caching.

    2. In the Name field, type DisableCaching. Leave the Value field empty.

      Disable client caching for a user

  6. Click Save.

When the user next signs in using the Unified Service Desk client, client caching isn’t used. However, it doesn’t delete or refresh the client cache store for the user. When the DisableCaching key is removed for the user, the user will return to using the previously stored client cache store.

Force a cache reset for a specific user

At times, it may be necessary to force a cache reset for a specific user to clear and reset the cache store. You can do this in two ways: From the CRM server or by using the Unified Service Desk client application on the user’s computer.

Using the CRM Server

  1. Sign in to Microsoft Dynamics CRM.

  2. Go to Settings > Unified Service Desk. (How do I get there?)

  3. Click User Settings.

  4. Click New on the command bar to create a new setting.

  5. On the New User Setting page:

    1. In the User field, type or select the name of the user that you want to disable client caching for.

    2. In the Name field, type ResetDesktopCache. Leave the Value field empty.

  6. Click Save.

This causes the Unified Service Desk client application to delete its local cache store and rebuild it from the server when the user uses it next time to sign in.

Using the Unified Service Desk client

You can invoke a reset from the client application using a hidden UII action called ResetLocalCache on the Global Manager hosted control type. You’ll need to create the UII action on the Global Manager hosted control type before you can use it.

  1. Sign in to Microsoft Dynamics CRM.

  2. Go to Settings > Unified Service Desk. (How do I get there?)

  3. Click Hosted Controls.

  4. Locate the CRM Global Manager hosted control, and click its name in the Name column to open it for editing.

    Note

    CRM Global Manager is the name of the hosted control in the sample Unified Service Desk applications. If you have named your Global Manager hosted control something else, select it instead. More information: Global Manager (Hosted Control)

  5. On the nav bar, click the down arrow next to the CRM Global Manager hosted control, and then select UII Actions.

    Navigation to UII Actions for hosted control

  6. On the next page, click Add New UII Action.

  7. On the New UII Action page, type ResetLocalCache in the Name field, and then click Save. Close the UII Action and the hosted control.

    Next, we will add an action call to call the UII action that we just created.

  8. On the nav bar, click Settings > Unified Service Desk > Action Calls.

  9. On the action calls page, Click New.

  10. On the New Action Call page:

    1. In the Name field, type ResetClientCache.

    2. In the Hosted Control field, specify the CRM Global Manager.

      Note

      CRM Global Manager is the name of the hosted control in the sample Unified Service Desk applications. If you have named your Global Manager hosted control something else, select it instead. More information: Global Manager (Hosted Control)

    3. In the Action field, specify ResetLocalCache.

  11. Click Save and then close the action call.

After you have setup the UII action and the action call, you can add a toolbar button, event, or code to directly invoke the action call from the client application. This creates a RestDesktopCache setting in the User Settings area, which triggers the reset behavior as described earlier in Using the CRM Server.

See Also

Concepts

Sample Unified Service Desk applications

Other Resources

Administer and manage Unified Service Desk
MSDN: Add a UII action to a hosted control
MSDN: Unified Service Desk Developer Guide

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.