This gives an overview of how to kick-off the Work Cache update which processes the Work Cache update queue, and how to perfom a full refresh of the caches, namely Work Cache, Project Cache and Project Status Report Cache for the entire site collection.
Reasons for performing a Refresh of a Cache:
The Work Cache has two timer jobs that maintain it and ensure that the content is as current as possible. The Project Cache and Project Status Report Cache have one timer job each to refresh their content. Updates are carried out in real-time.
If these have run recently, running them manually might not be needed so details on their frequency and last run time are displayed on the page.
Note:
To manually run any of these actions:
Update pushes any recent changes to the cache while refresh does a full rebuild of the cache.
Tip! Update is much faster than refresh and should be used to update the Work Cache unless one of the reasons listed above necessitates a full Refresh.
To run an Update of the Cache click the link to Apply the queued updates for this site collection to the work cache and then click OK to confirm.
You can also run the Refresh Project, Project Status Report, or Work Cache for the site at the site level. This will ensure that all changes in that site and below are accounted for.
Last updated refers to when the Work Cache was last updated by the update timer job.
Tip! The quickest way to Refresh Project Data including the Work Cache is using the Project Ribbon.
Refreshing all the contents of the entire Work Cache may take some time depending on the size of the Work Cache and site collection.
To start the Refresh of the Cache click the link to Perform a full work cache refresh for this site collection and then click OK to confirm.
Refreshing all the contents of the entire Project Cache may take some time depending on the size of the Project Cache and site collection.
To start the Refresh of the Cache click the link to Perform a full project cache refresh for this site collection and then click OK to confirm.
Refreshing all the contents of the entire Project Status Report Cache may take some time depending on the size of the site collection.
To start the Refresh of the Project Status Report Cache click the link to Perform a full project status report cache refresh for this site collection and then click OK to confirm.
The Project Cache, Project Status Report Cache, and Work Cache are all maintained by timer jobs.
Note: The Work Cache Refresh and Project Status Report Cache Refresh timer jobs will skip projects that are excluded from reports, such as closed or archived sites.
Work Cache
If a large number of items are getting added to the Work Cache the page might time out. The page will time out after 2 hours, if this happens you should re-run the Refresh or use the timer job.
Project Cache
Project Status Report Cache
Data Not Added To a Cache
If a project site's data is not added to a cache, check if it or any of the sites above it in the site hierarchy are marked as either Archived or Completed. For example, this circumstance could occur if a Project Office is marked as Completed when it still has project sites under it that are not Completed.
Page Time Out
If the page times out, contact your SharePoint administrator as they can run the refresh using the timer job on the server (though this will run on all BrightWork Site collections not just your one). Alternatively, your SharePoint administrator can use PowerShell cmdlets to run refreshes or updates of the Work Cache, refreshes of the Project Cache, or refreshes of the Project Status Report Cache, targeting specific site collections using the commands below. The commands will only complete if the relevant site collection cache feature is activated.
A cmdlet is a SharePoint PowerShell command-line action that can be used by a SharePoint Administrator logged into the SharePoint Server to run cache refreshes.
Commands to refresh caches:
Project Cache:Refresh-BWProjectCache [-Identity] <SPSitePipeBind> [-Verbose]
Project Status Report Cache:Refresh-BWPSRCache [-Identity] <SPSitePipeBind> [-Verbose]
Work Cache:Refresh-BWWorkCache [-Identity] <SPSitePipeBind> [-Verbose]
Command to update the Work Cache:
Update-BWWorkCache [-Identity] <SPSitePipeBind> [-Verbose]
Example commands to refresh a specific cache:
Refresh-BWProjectCache https://myserver/sites/my-bw-sitecollection
Refresh-BWPSRCache https://myserver/sites/my-bw-sitecollection
Refresh-BWWorkCache https://myserver/sites/my-bw-sitecollection
Example command to update a specific Work Cache:
Update-BWWorkCache https://myserver/sites/my-bw-sitecollection
Example commands to refresh a specific cache and write the details to SharePoint logs:
Refresh-BWProjectCache https://myserver/sites/my-bw-sitecollection -Verbose
Refresh-BWWorkCache https://myserver/sites/my-bw-sitecollection -Verbose
Refresh-BWPSRCache https://myserver/sites/my-bw-sitecollection -Verbose
Example command to update a specific Work Cache and write the details to SharePoint logs:
Update-BWWorkCache https://myserver/sites/my-bw-sitecollection -Verbose