Configure the Refresh Threshold

Scenario/Problem: You would like to configure the minimum time between provider refreshes within the Work Management Service application.

Solution: Use the Set-SPWorkManagementServiceApplication cmdlet with the -MinimumTimeBetweenProviderRefreshes parameter.

You can use the -MinimumTimeBetweenProviderRefreshes cmdlet to configure the minimum amount of time between cache updates. This is on a per-user basis. The service application waits until the time specified before it processes new refresh requests.

The data type of this parameter is System.TimeSpan; therefore, creating a new time span variable to provide is recommended (see Listing 19.3).

Listing 19.3. Configuring the Refresh Setting

$refreshTimeSpan = ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.